s3: smbd: In aio_del_req_from_fsp() talloc_free(fsp->aio_requests[]) when fsp->num_ai...
[amitay/samba.git] / source3 / smbd / aio.c
index 0f824f5aa1f69171e7fb71f8c4ec099c313e4cde..afe76608cd3ab0a450a9f9a8dacd336026374770 100644 (file)
@@ -103,6 +103,7 @@ static int aio_del_req_from_fsp(struct aio_req_fsp_link *lnk)
 
        if (fsp->num_aio_requests == 0) {
                tevent_wait_done(fsp->deferred_close);
+               TALLOC_FREE(fsp->aio_requests);
        }
        return 0;
 }