svn commit: samba r8160 - in trunk/source/smbd: .

vlendec at samba.org vlendec at samba.org
Tue Jul 5 08:57:12 GMT 2005


Author: vlendec
Date: 2005-07-05 08:57:12 +0000 (Tue, 05 Jul 2005)
New Revision: 8160

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

Log:
Fix a memleak -- Yes, I think this is better than passing down a flag.

Volker

Modified:
   trunk/source/smbd/files.c


Changeset:
Modified: trunk/source/smbd/files.c
===================================================================
--- trunk/source/smbd/files.c	2005-07-05 07:35:41 UTC (rev 8159)
+++ trunk/source/smbd/files.c	2005-07-05 08:57:12 UTC (rev 8160)
@@ -536,6 +536,8 @@
 		return NULL;
 	}
 
+	SAFE_FREE(dup_fsp->fh);
+
 	dup_fsp->fh = fsp->fh;
 	dup_fsp->fh->ref_count++;
 



More information about the samba-cvs mailing list