svn commit: samba r19665 - in branches/SAMBA_3_0/source/param: .

vlendec at samba.org vlendec at samba.org
Sat Nov 11 16:50:38 GMT 2006


Author: vlendec
Date: 2006-11-11 16:50:38 +0000 (Sat, 11 Nov 2006)
New Revision: 19665

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

Log:
Fix a memleak
Modified:
   branches/SAMBA_3_0/source/param/loadparm.c


Changeset:
Modified: branches/SAMBA_3_0/source/param/loadparm.c
===================================================================
--- branches/SAMBA_3_0/source/param/loadparm.c	2006-11-11 15:11:21 UTC (rev 19664)
+++ branches/SAMBA_3_0/source/param/loadparm.c	2006-11-11 16:50:38 UTC (rev 19665)
@@ -4573,7 +4573,7 @@
 	/* Should we allow printers to be shared... ? */
 	ctx = talloc_init("usershare_sd_xctx");
 	if (!ctx) {
-		SAFE_FREE(lines);
+		file_lines_free(lines);
 		return 1;
 	}
 
@@ -4581,11 +4581,11 @@
 			iService, lines, numlines, sharepath,
 			comment, &psd, &guest_ok) != USERSHARE_OK) {
 		talloc_destroy(ctx);
-		SAFE_FREE(lines);
+		file_lines_free(lines);
 		return -1;
 	}
 
-	SAFE_FREE(lines);
+	file_lines_free(lines);
 
 	/* Everything ok - add the service possibly using a template. */
 	if (iService < 0) {



More information about the samba-cvs mailing list