From 898c5e140ddca47eac9e2150fb571d6eac3ed7d2 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 15 Aug 2012 21:22:18 +1000 Subject: [PATCH] s3-vfs: ensure we strictly free the talloc_stackframe We must do this when leaving the function or else in development, we will panic. Andrew Bartlett --- source3/modules/vfs_xattr_tdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/modules/vfs_xattr_tdb.c b/source3/modules/vfs_xattr_tdb.c index 0352539e8c1..f09eec2cd8d 100644 --- a/source3/modules/vfs_xattr_tdb.c +++ b/source3/modules/vfs_xattr_tdb.c @@ -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);