summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-06-11 11:00:27 +0200
committerJeremy Allison <jra@samba.org>2012-06-11 14:54:37 -0700
commit386be83cbd9ea9814a1039199cb83897fece14ec (patch)
treea3362822fd9a2b16247e24e1dce56a0b11b26ef7
parent100421844cd068c9ebe20d0965d7d5d848c5a375 (diff)
downloadsamba-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>
-rw-r--r--source3/modules/vfs_aio_fork.c3
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;
}