projects
/
ccan
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04b2fee
)
tdb2: cancel transactions on tdb_close
author
Rusty Russell
<rusty@rustcorp.com.au>
Wed, 1 Dec 2010 13:18:42 +0000
(23:48 +1030)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Wed, 1 Dec 2010 13:18:42 +0000
(23:48 +1030)
Otherwise we leak memory.
ccan/tdb2/tdb.c
patch
|
blob
|
history
diff --git
a/ccan/tdb2/tdb.c
b/ccan/tdb2/tdb.c
index d070a0ef3068210d1d828731a1361716557f476e..8bae9fc298516738f3e896aa4c31edfa7350f893 100644
(file)
--- a/
ccan/tdb2/tdb.c
+++ b/
ccan/tdb2/tdb.c
@@
-602,12
+602,11
@@
int tdb_close(struct tdb_context *tdb)
struct tdb_context **i;
int ret = 0;
- /* FIXME:
+ tdb_trace(tdb, "tdb_close");
+
if (tdb->transaction) {
tdb_transaction_cancel(tdb);
}
- */
- tdb_trace(tdb, "tdb_close");
if (tdb->map_ptr) {
if (tdb->flags & TDB_INTERNAL)