svn commit: samba r23345 - in branches: SAMBA_3_0/source/nsswitch SAMBA_3_0_26/source/nsswitch

jra at samba.org jra at samba.org
Mon Jun 4 19:58:11 GMT 2007


Author: jra
Date: 2007-06-04 19:58:11 +0000 (Mon, 04 Jun 2007)
New Revision: 23345

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

Log:
Stop Coverity from getting confused.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/nsswitch/winbindd_cache.c
   branches/SAMBA_3_0_26/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	2007-06-04 19:50:30 UTC (rev 23344)
+++ branches/SAMBA_3_0/source/nsswitch/winbindd_cache.c	2007-06-04 19:58:11 UTC (rev 23345)
@@ -3617,6 +3617,7 @@
 	}
 
 	if ( buflen < len ) {
+		SAFE_FREE(buffer);
 		if ( (buffer = SMB_MALLOC_ARRAY(unsigned char, len)) == NULL ) {
 			DEBUG(0,("pack_tdc_domains: failed to alloc buffer!\n"));
 			buflen = -1;

Modified: branches/SAMBA_3_0_26/source/nsswitch/winbindd_cache.c
===================================================================
--- branches/SAMBA_3_0_26/source/nsswitch/winbindd_cache.c	2007-06-04 19:50:30 UTC (rev 23344)
+++ branches/SAMBA_3_0_26/source/nsswitch/winbindd_cache.c	2007-06-04 19:58:11 UTC (rev 23345)
@@ -3617,6 +3617,7 @@
 	}
 
 	if ( buflen < len ) {
+		SAFE_FREE(buffer);
 		if ( (buffer = SMB_MALLOC_ARRAY(unsigned char, len)) == NULL ) {
 			DEBUG(0,("pack_tdc_domains: failed to alloc buffer!\n"));
 			buflen = -1;



More information about the samba-cvs mailing list