svn commit: samba r13883 - in trunk/source/nmbd: .

jra at samba.org jra at samba.org
Mon Mar 6 19:27:25 GMT 2006


Author: jra
Date: 2006-03-06 19:27:22 +0000 (Mon, 06 Mar 2006)
New Revision: 13883

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

Log:
Fix coverity CID bug #96. Missing free on error
exit path.
Jeremy.

Modified:
   trunk/source/nmbd/nmbd_winsserver.c


Changeset:
Modified: trunk/source/nmbd/nmbd_winsserver.c
===================================================================
--- trunk/source/nmbd/nmbd_winsserver.c	2006-03-06 19:27:16 UTC (rev 13882)
+++ trunk/source/nmbd/nmbd_winsserver.c	2006-03-06 19:27:22 UTC (rev 13883)
@@ -645,6 +645,7 @@
 		/* Allocate the space for the ip_list. */
 		if((ip_list = SMB_MALLOC_ARRAY( struct in_addr, num_ips)) == NULL) {
 			DEBUG(0,("initialise_wins: Malloc fail !\n"));
+			x_fclose(fp);
 			return False;
 		}
  



More information about the samba-cvs mailing list