1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

r8497: prevent a fd leak in RAW-SEARCH test

(This used to be commit efb151ba79)
This commit is contained in:
Andrew Tridgell 2005-07-15 12:58:09 +00:00 committed by Gerald (Jerry) Carter
parent a92b3d070f
commit a2a838d72c

View File

@ -958,10 +958,10 @@ static BOOL test_many_dirs(struct smbcli_state *cli, TALLOC_CTX *mem_ctx)
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);