Otherwise we leave "op" around which ultimately leads to smbXsrv_open_close()
being called from its destructor smbXsrv_open_destructor() that is triggerd by
its tree disconnect (or logoff, or ...) and this would clobber the open record.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15649
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15651
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
+++ /dev/null
-^samba3.smb2.durable-open.reopen5\(nt4_dc\)
nt_errstr(status),
nt_errstr(return_status));
+ TALLOC_FREE(state->op);
tevent_req_nterror(req, return_status);
return tevent_req_post(req, state->ev);
}