summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-07-15 07:16:15 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:57:37 -0500
commit6f47dec36459dda22130ff36f7cdf8b675a28742 (patch)
tree2b08feef501fc25ca1069650f85774362962e99c /source4
parentf348037f7bb7ec0638d8d4c96e06a7d3d7406151 (diff)
downloadsamba-6f47dec36459dda22130ff36f7cdf8b675a28742.tar.gz
samba-6f47dec36459dda22130ff36f7cdf8b675a28742.tar.bz2
samba-6f47dec36459dda22130ff36f7cdf8b675a28742.zip
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)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_tdb.c2
1 files changed, 1 insertions, 1 deletions
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;
}