diff options
author | Jeremy Allison <jra@samba.org> | 2007-04-11 05:27:00 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:19:18 -0500 |
commit | a014a6c30d1e0d75a1a49fdd61bad8cf4cc90327 (patch) | |
tree | aa2f75e9417319162b1a16e259ccb6940e1a9b74 | |
parent | 99abe96b2b8e41e4c7536d35cc169f7e6c3eba1c (diff) | |
download | samba-a014a6c30d1e0d75a1a49fdd61bad8cf4cc90327.tar.gz |
r22164: Fix missing lock count release in transaction cancel.
Found by Taj Khattra <taj.khattra@gmail.com>.
Jeremy.
-rw-r--r-- | source/tdb/common/transaction.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/tdb/common/transaction.c b/source/tdb/common/transaction.c index eb296206f9f..640cd5014d2 100644 --- a/source/tdb/common/transaction.c +++ b/source/tdb/common/transaction.c @@ -523,6 +523,8 @@ int tdb_transaction_cancel(struct tdb_context *tdb) F_UNLCK,F_SETLKW, 0, 1); } tdb->num_locks = 0; + tdb->num_lockrecs = 0; + SAFE_FREE(tdb->lockrecs); } /* restore the normal io methods */ |