git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac31e65
)
defer_open talloc_zero() and TALLOC_FREE(lck);
author
Stefan Metzmacher
<metze@samba.org>
Fri, 4 Oct 2019 15:10:01 +0000
(17:10 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Tue, 28 Jan 2020 12:26:51 +0000
(13:26 +0100)
source3/smbd/open.c
patch
|
blob
|
history
diff --git
a/source3/smbd/open.c
b/source3/smbd/open.c
index 6d54cd24acd8696d2353998995a75b2ec35ae6fc..65bd04a03bb411e6ce43237ad79d0891e967ca23 100644
(file)
--- a/
source3/smbd/open.c
+++ b/
source3/smbd/open.c
@@
-2701,12
+2701,14
@@
static void defer_open(struct share_mode_lock *lck,
lck->data->id,
(struct server_id){0});
if (watch_req == NULL) {
+ TALLOC_FREE(lck);
exit_server("Could not watch share mode record");
}
tevent_req_set_callback(watch_req, defer_open_done, open_rec);
ok = tevent_req_set_endtime(watch_req, req->sconn->ev_ctx, abs_timeout);
if (!ok) {
+ TALLOC_FREE(lck);
exit_server("tevent_req_set_endtime failed");
}