Author: abartlet
Date: 2006-11-01 03:17:42 +0000 (Wed, 01 Nov 2006)
New Revision: 19521

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19521

Log:
Fix memory leak.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/lib/ldb/modules/ldb_map_outbound.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/modules/ldb_map_outbound.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/modules/ldb_map_outbound.c        
2006-11-01 03:17:23 UTC (rev 19520)
+++ branches/SAMBA_4_0/source/lib/ldb/modules/ldb_map_outbound.c        
2006-11-01 03:17:42 UTC (rev 19521)
@@ -195,6 +195,7 @@
                if (ldb_msg_add_empty(msg, el->name, 0, &old) != 0) {
                        return -1;
                }
+               talloc_free(old->name);
        }
 
        /* copy new element */

Reply via email to