svn commit: samba r14242 - branches/SAMBA_3_0/source/client trunk/source/client

vlendec at samba.org vlendec at samba.org
Sun Mar 12 17:24:11 GMT 2006


Author: vlendec
Date: 2006-03-12 17:24:10 +0000 (Sun, 12 Mar 2006)
New Revision: 14242

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

Log:
Fix Coverity bug # 82
Modified:
   branches/SAMBA_3_0/source/client/clitar.c
   trunk/source/client/clitar.c


Changeset:
Modified: branches/SAMBA_3_0/source/client/clitar.c
===================================================================
--- branches/SAMBA_3_0/source/client/clitar.c	2006-03-12 17:18:26 UTC (rev 14241)
+++ branches/SAMBA_3_0/source/client/clitar.c	2006-03-12 17:24:10 UTC (rev 14242)
@@ -523,6 +523,8 @@
 
 	if ((partpath == NULL) || (ffname == NULL)){
 		DEBUG(0, ("Out of memory in ensurepath: %s\n", fname));
+		SAFE_FREE(partpath);
+		SAFE_FREE(ffname);
 		return(False);
 	}
 

Modified: trunk/source/client/clitar.c
===================================================================
--- trunk/source/client/clitar.c	2006-03-12 17:18:26 UTC (rev 14241)
+++ trunk/source/client/clitar.c	2006-03-12 17:24:10 UTC (rev 14242)
@@ -523,6 +523,8 @@
 
 	if ((partpath == NULL) || (ffname == NULL)){
 		DEBUG(0, ("Out of memory in ensurepath: %s\n", fname));
+		SAFE_FREE(partpath);
+		SAFE_FREE(ffname);
 		return(False);
 	}
 



More information about the samba-cvs mailing list