diff options
author | Volker Lendecke <vl@samba.org> | 2012-06-11 11:00:27 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2012-06-11 14:54:37 -0700 |
commit | 386be83cbd9ea9814a1039199cb83897fece14ec (patch) | |
tree | a3362822fd9a2b16247e24e1dce56a0b11b26ef7 /source3/modules | |
parent | 100421844cd068c9ebe20d0965d7d5d848c5a375 (diff) | |
download | samba-386be83cbd9ea9814a1039199cb83897fece14ec.tar.gz samba-386be83cbd9ea9814a1039199cb83897fece14ec.tar.bz2 samba-386be83cbd9ea9814a1039199cb83897fece14ec.zip |
s3: Save errno around a TALLOC_FREE
Signed-off-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/modules')
-rw-r--r-- | source3/modules/vfs_aio_fork.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/modules/vfs_aio_fork.c b/source3/modules/vfs_aio_fork.c index f68befbf31..cc13a9bd1c 100644 --- a/source3/modules/vfs_aio_fork.c +++ b/source3/modules/vfs_aio_fork.c @@ -794,6 +794,7 @@ static int aio_fork_suspend(struct vfs_handle_struct *handle, int i; int ret = -1; bool timed_out = false; + int err; children = init_aio_children(handle); if (children == NULL) { @@ -885,7 +886,9 @@ static int aio_fork_suspend(struct vfs_handle_struct *handle, out: + err = errno; TALLOC_FREE(frame); + errno = err; return ret; } |