mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s4:torture: fix segfault in test_durable_open_open2_oplock()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
parent
2f8a033bf2
commit
295444266d
@ -1552,8 +1552,10 @@ static bool test_durable_open_open2_oplock(struct torture_context *tctx,
|
||||
done:
|
||||
smb2_util_close(tree2, h2);
|
||||
smb2_util_unlink(tree2, fname);
|
||||
smb2_util_close(tree1, h1);
|
||||
smb2_util_unlink(tree1, fname);
|
||||
if (tree1 != NULL) {
|
||||
smb2_util_close(tree1, h1);
|
||||
smb2_util_unlink(tree1, fname);
|
||||
}
|
||||
|
||||
talloc_free(tree1);
|
||||
talloc_free(tree2);
|
||||
|
Loading…
Reference in New Issue
Block a user