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:
parent
a92b3d070f
commit
a2a838d72c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user