From c1c9b99054f28f9c10f79a2bbc95be9864270705 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 7 May 2013 14:04:24 -0700 Subject: Fix missing TALLOC_FREE of stackframes. Signed-off-by: Jeremy Allison --- source3/modules/vfs_gpfs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/modules/vfs_gpfs.c') diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c index 6056b7e0af..7f00eac5f6 100644 --- a/source3/modules/vfs_gpfs.c +++ b/source3/modules/vfs_gpfs.c @@ -472,6 +472,7 @@ static NTSTATUS gpfsacl_get_nt_acl(vfs_handle_struct *handle, } /* GPFS ACL was not read, something wrong happened, error code is set in errno */ + TALLOC_FREE(frame); return map_nt_error_from_unix(errno); } @@ -1122,9 +1123,10 @@ static int gpfsacl_emu_chmod(vfs_handle_struct *handle, DEBUG(10, ("gpfsacl_emu_chmod invoked for %s mode %o\n", path, mode)); result = gpfs_get_nfs4_acl(frame, path, &pacl); - if (result) + if (result) { TALLOC_FREE(frame); return result; + } if (mode & ~(S_IRWXU | S_IRWXG | S_IRWXO)) { DEBUG(2, ("WARNING: cutting extra mode bits %o on %s\n", mode, path)); -- cgit