From 74adb98b657a09c7d729fbf90d201cf9715140ba Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 1 Nov 2006 03:17:42 +0000 Subject: r19521: Fix memory leak. Andrew Bartlett (This used to be commit cf1b0cc19fc7aad2a44777929861e70497ccef7d) --- source4/lib/ldb/modules/ldb_map_outbound.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source4/lib/ldb') 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 */ -- cgit