]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r22164: Fix missing lock count release in transaction cancel.
authorJeremy Allison <jra@samba.org>
Wed, 11 Apr 2007 05:27:00 +0000 (05:27 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:19:18 +0000 (12:19 -0500)
Found by Taj Khattra <taj.khattra@gmail.com>.
Jeremy.

source/tdb/common/transaction.c

index eb296206f9f4be905a6f33bd54172c80b6a2d5af..640cd5014d27cfe73422761524ca95e213ecfa30 100644 (file)
@@ -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 */