diff options
author | Jeremy Allison <jra@samba.org> | 2012-01-11 16:37:48 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2012-01-12 03:10:52 +0100 |
commit | ddc1f3df5183081aeb7c5b97b7fa4426c772346d (patch) | |
tree | 793b687bdfac179b81f2e5c9b609b294f21791c0 /source3/smbd | |
parent | f15cf9176df974c8a460db3ce74abf38d3f552ae (diff) | |
download | samba-ddc1f3df5183081aeb7c5b97b7fa4426c772346d.tar.gz samba-ddc1f3df5183081aeb7c5b97b7fa4426c772346d.tar.bz2 samba-ddc1f3df5183081aeb7c5b97b7fa4426c772346d.zip |
Ensure we always free aio_ex on all error paths by moving the TALLOC_FREE
call out of smbd_aio_complete_aio_ex() and into the caller.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Jan 12 03:10:52 CET 2012 on sn-devel-104
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/aio.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/smbd/aio.c b/source3/smbd/aio.c index 07b8388fba..44081f69a0 100644 --- a/source3/smbd/aio.c +++ b/source3/smbd/aio.c @@ -67,6 +67,7 @@ static void smbd_aio_signal_handler(struct tevent_context *ev_ctx, info->si_value.sival_ptr; smbd_aio_complete_aio_ex(aio_ex); + TALLOC_FREE(aio_ex); } @@ -931,8 +932,6 @@ void smbd_aio_complete_aio_ex(struct aio_extra *aio_ex) if (!handle_aio_completed(aio_ex, &ret)) { return; } - - TALLOC_FREE(aio_ex); } /**************************************************************************** |