]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3-vfs: ensure we strictly free the talloc_stackframe
authorAndrew Bartlett <abartlet@samba.org>
Wed, 15 Aug 2012 11:22:18 +0000 (21:22 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 15 Aug 2012 14:28:03 +0000 (16:28 +0200)
We must do this when leaving the function or else in development, we
will panic.

Andrew Bartlett

source3/modules/vfs_xattr_tdb.c

index 0352539e8c17d5eea08331da9897603325756b11..f09eec2cd8dc8d75ff7072298f005f2abe06be2f 100644 (file)
@@ -74,7 +74,7 @@ static ssize_t xattr_tdb_fgetxattr(struct vfs_handle_struct *handle,
        DATA_BLOB blob;
        TALLOC_CTX *frame = talloc_stackframe();
 
-       SMB_VFS_HANDLE_GET_DATA(handle, db, struct db_context, return -1);
+       SMB_VFS_HANDLE_GET_DATA(handle, db, struct db_context, TALLOC_FREE(frame); return -1);
 
        if (SMB_VFS_FSTAT(fsp, &sbuf) == -1) {
                TALLOC_FREE(frame);