summaryrefslogtreecommitdiff
path: root/source4/lib/ldb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-11-01 03:17:42 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:24:44 -0500
commit74adb98b657a09c7d729fbf90d201cf9715140ba (patch)
treefa7f54fef46447bc0c3924aca190cc412523350c /source4/lib/ldb
parentabe0c30abafbc982d4031ad3585e262bd192e452 (diff)
downloadsamba-74adb98b657a09c7d729fbf90d201cf9715140ba.tar.gz
samba-74adb98b657a09c7d729fbf90d201cf9715140ba.tar.bz2
samba-74adb98b657a09c7d729fbf90d201cf9715140ba.zip
r19521: Fix memory leak.
Andrew Bartlett (This used to be commit cf1b0cc19fc7aad2a44777929861e70497ccef7d)
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r--source4/lib/ldb/modules/ldb_map_outbound.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/lib/ldb/modules/ldb_map_outbound.c b/source4/lib/ldb/modules/ldb_map_outbound.c
index ff3b5c3aa2..aa8d4f9165 100644
--- a/source4/lib/ldb/modules/ldb_map_outbound.c
+++ b/source4/lib/ldb/modules/ldb_map_outbound.c
@@ -195,6 +195,7 @@ static int ldb_msg_replace(struct ldb_message *msg, const struct ldb_message_ele
if (ldb_msg_add_empty(msg, el->name, 0, &old) != 0) {
return -1;
}
+ talloc_free(old->name);
}
/* copy new element */