From 386be83cbd9ea9814a1039199cb83897fece14ec Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 11 Jun 2012 11:00:27 +0200 Subject: s3: Save errno around a TALLOC_FREE Signed-off-by: Jeremy Allison --- source3/modules/vfs_aio_fork.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3/modules') 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; } -- cgit