summaryrefslogtreecommitdiff
path: root/source3/tdb/tdbutil.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-05-30 05:40:52 +0000
committerAndrew Tridgell <tridge@samba.org>2001-05-30 05:40:52 +0000
commit9848c067c096f284ee43d7e8c3f9678672728318 (patch)
treed04375217db0b6e351a183d1b0ef4f9dcaaaf225 /source3/tdb/tdbutil.c
parent964d7a66259190548d54af790cb60c63958bff6e (diff)
downloadsamba-9848c067c096f284ee43d7e8c3f9678672728318.tar.gz
samba-9848c067c096f284ee43d7e8c3f9678672728318.tar.bz2
samba-9848c067c096f284ee43d7e8c3f9678672728318.zip
- fixed an off-by-1 bug in the delayed deletion code that I believe
was the initial cause of the connections database becoming corrupt. Note that this bug only happens when doing deletions within a traversal, which is why it has only showed up now - added delete within traversal testing to tdbtorture - added a lot more logging to tdb (This used to be commit 6e1277df9d964c615a3ad876d3b89ff8132081c1)
Diffstat (limited to 'source3/tdb/tdbutil.c')
-rw-r--r--source3/tdb/tdbutil.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/tdb/tdbutil.c b/source3/tdb/tdbutil.c
index c4cbf73034..409397366a 100644
--- a/source3/tdb/tdbutil.c
+++ b/source3/tdb/tdbutil.c
@@ -337,6 +337,7 @@ static void tdb_log(TDB_CONTEXT *tdb, int level, const char *format, ...)
if (!ptr || !*ptr) return;
DEBUG(level, ("tdb(%s): %s", tdb->name, ptr));
+ free(ptr);
}