From f61cb379895bbd7818889c3d4c8719938d2a48a4 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 11 Apr 2007 05:27:00 +0000 Subject: r22164: Fix missing lock count release in transaction cancel. Found by Taj Khattra . Jeremy. (This used to be commit a014a6c30d1e0d75a1a49fdd61bad8cf4cc90327) --- source3/tdb/common/transaction.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source3/tdb/common/transaction.c b/source3/tdb/common/transaction.c index eb296206f9..640cd5014d 100644 --- a/source3/tdb/common/transaction.c +++ b/source3/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 */ -- cgit