Merge pull request #47 from alliedmodders/fix-dbi-leak
Fix a Handle leak when reporting transaction errors.
This commit is contained in:
commit
3ba47a71fd
@ -1672,6 +1672,8 @@ public:
|
|||||||
failure_->PushCell(failIndex_);
|
failure_->PushCell(failIndex_);
|
||||||
failure_->PushArray(data, txn_->entries.length());
|
failure_->PushArray(data, txn_->entries.length());
|
||||||
failure_->Execute(NULL);
|
failure_->Execute(NULL);
|
||||||
|
|
||||||
|
handlesys->FreeHandle(dbh, &sec);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user