svn commit: samba r13983 - branches/SAMBA_3_0/source/smbd
trunk/source/smbd
vlendec at samba.org
vlendec at samba.org
Tue Mar 7 20:24:29 GMT 2006
Author: vlendec
Date: 2006-03-07 20:24:28 +0000 (Tue, 07 Mar 2006)
New Revision: 13983
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=13983
Log:
Fix Coverity bug # 111
Modified:
branches/SAMBA_3_0/source/smbd/lanman.c
trunk/source/smbd/lanman.c
Changeset:
Modified: branches/SAMBA_3_0/source/smbd/lanman.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/lanman.c 2006-03-07 20:22:26 UTC (rev 13982)
+++ branches/SAMBA_3_0/source/smbd/lanman.c 2006-03-07 20:24:28 UTC (rev 13983)
@@ -1082,6 +1082,7 @@
*servers = SMB_REALLOC_ARRAY(*servers,struct srv_info_struct, alloced);
if (!*servers) {
DEBUG(0,("get_server_info: failed to enlarge servers info struct!\n"));
+ file_lines_free(lines);
return 0;
}
memset((char *)((*servers)+count),'\0',sizeof(**servers)*(alloced-count));
Modified: trunk/source/smbd/lanman.c
===================================================================
--- trunk/source/smbd/lanman.c 2006-03-07 20:22:26 UTC (rev 13982)
+++ trunk/source/smbd/lanman.c 2006-03-07 20:24:28 UTC (rev 13983)
@@ -1082,6 +1082,7 @@
*servers = SMB_REALLOC_ARRAY(*servers,struct srv_info_struct, alloced);
if (!*servers) {
DEBUG(0,("get_server_info: failed to enlarge servers info struct!\n"));
+ file_lines_free(lines);
return 0;
}
memset((char *)((*servers)+count),'\0',sizeof(**servers)*(alloced-count));
More information about the samba-cvs
mailing list