From: Volker Lendecke Date: Mon, 11 Jun 2012 09:00:27 +0000 (+0200) Subject: s3: Save errno around a TALLOC_FREE X-Git-Tag: samba-4.0.0beta2~226 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=386be83cbd9ea9814a1039199cb83897fece14ec;p=thirdparty%2Fsamba.git s3: Save errno around a TALLOC_FREE Signed-off-by: Jeremy Allison --- diff --git a/source3/modules/vfs_aio_fork.c b/source3/modules/vfs_aio_fork.c index f68befbf31e..cc13a9bd1cd 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; }