svn commit: samba r16595 - in branches/SAMBA_3_0/source/lib: .
jra at samba.org
jra at samba.org
Wed Jun 28 01:56:43 GMT 2006
Author: jra
Date: 2006-06-28 01:56:41 +0000 (Wed, 28 Jun 2006)
New Revision: 16595
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16595
Log:
Klocwork #2067. Fix possible memleak on error exit.
Jeremy.
Modified:
branches/SAMBA_3_0/source/lib/util_str.c
Changeset:
Modified: branches/SAMBA_3_0/source/lib/util_str.c
===================================================================
--- branches/SAMBA_3_0/source/lib/util_str.c 2006-06-28 01:56:36 UTC (rev 16594)
+++ branches/SAMBA_3_0/source/lib/util_str.c 2006-06-28 01:56:41 UTC (rev 16595)
@@ -2402,6 +2402,9 @@
error:
*len = -1;
+ if (mem_ctx == NULL) {
+ SAFE_FREE(*string);
+ }
*string = NULL;
}
More information about the samba-cvs
mailing list