svn commit: samba r8497 - in branches/SAMBA_4_0/source/torture/raw: .

tridge at samba.org tridge at samba.org
Fri Jul 15 12:58:10 GMT 2005


Author: tridge
Date: 2005-07-15 12:58:09 +0000 (Fri, 15 Jul 2005)
New Revision: 8497

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

Log:
prevent a fd leak in RAW-SEARCH test


Modified:
   branches/SAMBA_4_0/source/torture/raw/search.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/raw/search.c
===================================================================
--- branches/SAMBA_4_0/source/torture/raw/search.c	2005-07-15 12:54:55 UTC (rev 8496)
+++ branches/SAMBA_4_0/source/torture/raw/search.c	2005-07-15 12:58:09 UTC (rev 8497)
@@ -958,10 +958,10 @@
 				goto done;
 			}
 			free(fname);
+			smbcli_close(cli->tree, fnum);
 		}
 
 		free(dname);
-		smbcli_close(cli->tree, fnum);
 	}
 
 	file  = talloc_zero_array(mem_ctx, union smb_search_data, num_dirs);



More information about the samba-cvs mailing list