]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: vfs_aio_pthread. Fix leak of state struct on error.
authorJeremy Allison <jra@samba.org>
Wed, 4 Mar 2020 21:29:08 +0000 (13:29 -0800)
committerJeremy Allison <jra@samba.org>
Sun, 8 Mar 2020 18:07:44 +0000 (18:07 +0000)
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>
source3/modules/vfs_aio_pthread.c

index d13ce2fdc63ba87c77418bbc61973e5f7c9b1315..37ba0c2c8a2f57bb32dfcdf5bf4eddc9c23be9bc 100644 (file)
@@ -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);