svn commit: samba r19526 - in branches: SAMBA_3_0/source/libads SAMBA_3_0_23/source/libads SAMBA_3_0_24/source/libads

gd at samba.org gd at samba.org
Wed Nov 1 11:04:29 GMT 2006


Author: gd
Date: 2006-11-01 11:04:28 +0000 (Wed, 01 Nov 2006)
New Revision: 19526

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

Log:
Fix minor memleak.

Guenther

Modified:
   branches/SAMBA_3_0/source/libads/ldap.c
   branches/SAMBA_3_0_23/source/libads/ldap.c
   branches/SAMBA_3_0_24/source/libads/ldap.c


Changeset:
Modified: branches/SAMBA_3_0/source/libads/ldap.c
===================================================================
--- branches/SAMBA_3_0/source/libads/ldap.c	2006-11-01 10:59:28 UTC (rev 19525)
+++ branches/SAMBA_3_0/source/libads/ldap.c	2006-11-01 11:04:28 UTC (rev 19526)
@@ -1232,6 +1232,7 @@
 	}
 	
 	ret = ldap_delete_s(ads->ld, utf8_dn);
+	SAFE_FREE(utf8_dn);
 	return ADS_ERROR(ret);
 }
 

Modified: branches/SAMBA_3_0_23/source/libads/ldap.c
===================================================================
--- branches/SAMBA_3_0_23/source/libads/ldap.c	2006-11-01 10:59:28 UTC (rev 19525)
+++ branches/SAMBA_3_0_23/source/libads/ldap.c	2006-11-01 11:04:28 UTC (rev 19526)
@@ -1156,6 +1156,7 @@
 	}
 	
 	ret = ldap_delete_s(ads->ld, utf8_dn);
+	SAFE_FREE(utf8_dn);
 	return ADS_ERROR(ret);
 }
 

Modified: branches/SAMBA_3_0_24/source/libads/ldap.c
===================================================================
--- branches/SAMBA_3_0_24/source/libads/ldap.c	2006-11-01 10:59:28 UTC (rev 19525)
+++ branches/SAMBA_3_0_24/source/libads/ldap.c	2006-11-01 11:04:28 UTC (rev 19526)
@@ -1224,6 +1224,7 @@
 	}
 	
 	ret = ldap_delete_s(ads->ld, utf8_dn);
+	SAFE_FREE(utf8_dn);
 	return ADS_ERROR(ret);
 }
 



More information about the samba-cvs mailing list