mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
s3: VFS: vfs_aio_pthread. Fix leak of state struct on error.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14301 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
parent
410e7599bd
commit
a1e247c3ba
@ -308,6 +308,7 @@ static int open_async(const files_struct *fsp,
|
|||||||
fsp->conn->sconn->pool,
|
fsp->conn->sconn->pool,
|
||||||
aio_open_worker, opd);
|
aio_open_worker, opd);
|
||||||
if (subreq == NULL) {
|
if (subreq == NULL) {
|
||||||
|
TALLOC_FREE(opd);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
tevent_req_set_callback(subreq, aio_open_handle_completion, opd);
|
tevent_req_set_callback(subreq, aio_open_handle_completion, opd);
|
||||||
|
Loading…
Reference in New Issue
Block a user