svn commit: samba r16790 - branches/SAMBA_3_0/source/nsswitch trunk/source/nsswitch

gd at samba.org gd at samba.org
Mon Jul 3 22:27:11 GMT 2006


Author: gd
Date: 2006-07-03 22:27:10 +0000 (Mon, 03 Jul 2006)
New Revision: 16790

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

Log:
Fix memleak.

Guenther

Modified:
   branches/SAMBA_3_0/source/nsswitch/winbindd_cache.c
   trunk/source/nsswitch/winbindd_cache.c


Changeset:
Modified: branches/SAMBA_3_0/source/nsswitch/winbindd_cache.c
===================================================================
--- branches/SAMBA_3_0/source/nsswitch/winbindd_cache.c	2006-07-03 21:07:46 UTC (rev 16789)
+++ branches/SAMBA_3_0/source/nsswitch/winbindd_cache.c	2006-07-03 22:27:10 UTC (rev 16790)
@@ -827,6 +827,7 @@
 		return NT_STATUS_OBJECT_NAME_NOT_FOUND;
 	}
 
+	SAFE_FREE(data.dptr);
 	return NT_STATUS_OK;
 }
 

Modified: trunk/source/nsswitch/winbindd_cache.c
===================================================================
--- trunk/source/nsswitch/winbindd_cache.c	2006-07-03 21:07:46 UTC (rev 16789)
+++ trunk/source/nsswitch/winbindd_cache.c	2006-07-03 22:27:10 UTC (rev 16790)
@@ -827,6 +827,7 @@
 		return NT_STATUS_OBJECT_NAME_NOT_FOUND;
 	}
 
+	SAFE_FREE(data.dptr);
 	return NT_STATUS_OK;
 }
 



More information about the samba-cvs mailing list