From 6f47dec36459dda22130ff36f7cdf8b675a28742 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 15 Jul 2004 07:16:15 +0000 Subject: r1511: fixed a free() that should be ldb_free() this might explain the tdb corruption that metze found - it caused heap corruption that affected tdb (This used to be commit 31d55dfb443612a341ff6ade77c6e4477c4fefca) --- source4/lib/ldb/ldb_tdb/ldb_tdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/lib/ldb') diff --git a/source4/lib/ldb/ldb_tdb/ldb_tdb.c b/source4/lib/ldb/ldb_tdb/ldb_tdb.c index b36c53e100..355de21250 100644 --- a/source4/lib/ldb/ldb_tdb/ldb_tdb.c +++ b/source4/lib/ldb/ldb_tdb/ldb_tdb.c @@ -470,7 +470,7 @@ int ltdb_modify_internal(struct ldb_context *ldb, const struct ldb_message *msg) tdb_data = tdb_fetch(ltdb->tdb, tdb_key); if (!tdb_data.dptr) { - free(tdb_key.dptr); + ldb_free(ldb, tdb_key.dptr); return -1; } -- cgit