svn commit: samba r14248 - branches/SAMBA_3_0/source/client
trunk/source/client
vlendec at samba.org
vlendec at samba.org
Sun Mar 12 17:57:05 GMT 2006
Author: vlendec
Date: 2006-03-12 17:57:05 +0000 (Sun, 12 Mar 2006)
New Revision: 14248
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=14248
Log:
Fix Coverity bug # 84
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:53:57 UTC (rev 14247)
+++ branches/SAMBA_3_0/source/client/clitar.c 2006-03-12 17:57:05 UTC (rev 14248)
@@ -1724,6 +1724,7 @@
if ((tmpstr = (char *)SMB_MALLOC(strlen(cliplist[clipcount])+1)) == NULL) {
DEBUG(0, ("Could not allocate space for a cliplist item, # %i\n", clipcount));
+ SAFE_FREE(tmplist);
return 0;
}
Modified: trunk/source/client/clitar.c
===================================================================
--- trunk/source/client/clitar.c 2006-03-12 17:53:57 UTC (rev 14247)
+++ trunk/source/client/clitar.c 2006-03-12 17:57:05 UTC (rev 14248)
@@ -1723,6 +1723,7 @@
if ((tmpstr = (char *)SMB_MALLOC(strlen(cliplist[clipcount])+1)) == NULL) {
DEBUG(0, ("Could not allocate space for a cliplist item, # %i\n", clipcount));
+ SAFE_FREE(tmplist);
return 0;
}
More information about the samba-cvs
mailing list