diff options
author | Jeremy Allison <jra@samba.org> | 2020-03-04 13:29:08 -0800 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2020-04-07 08:12:33 +0000 |
commit | 7c6a03547364ad04a023c79e6014321200033bb7 (patch) | |
tree | 285aa4552088d955df978865f4d3678beaeb76e0 | |
parent | 24ab1b46af32c3549fe4a52fde03007044bdca23 (diff) | |
download | samba-7c6a03547364ad04a023c79e6014321200033bb7.tar.gz |
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>
(cherry picked from commit a1e247c3ba579ecc6ee03f5aad9679ed79fac5ac)
-rw-r--r-- | source3/modules/vfs_aio_pthread.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/modules/vfs_aio_pthread.c b/source3/modules/vfs_aio_pthread.c index d13ce2fdc63..37ba0c2c8a2 100644 --- a/source3/modules/vfs_aio_pthread.c +++ b/source3/modules/vfs_aio_pthread.c @@ -308,6 +308,7 @@ static int open_async(const files_struct *fsp, fsp->conn->sconn->pool, aio_open_worker, opd); if (subreq == NULL) { + TALLOC_FREE(opd); return -1; } tevent_req_set_callback(subreq, aio_open_handle_completion, opd); |