Commit d95645d5 authored by Rusty Russell's avatar Rusty Russell

tdb2: cancel transactions on tdb_close

Otherwise we leak memory.
parent 04b2feef
...@@ -602,12 +602,11 @@ int tdb_close(struct tdb_context *tdb) ...@@ -602,12 +602,11 @@ int tdb_close(struct tdb_context *tdb)
struct tdb_context **i; struct tdb_context **i;
int ret = 0; int ret = 0;
/* FIXME: tdb_trace(tdb, "tdb_close");
if (tdb->transaction) { if (tdb->transaction) {
tdb_transaction_cancel(tdb); tdb_transaction_cancel(tdb);
} }
*/
tdb_trace(tdb, "tdb_close");
if (tdb->map_ptr) { if (tdb->map_ptr) {
if (tdb->flags & TDB_INTERNAL) if (tdb->flags & TDB_INTERNAL)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment