summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_xattr_tdb.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-08-15 21:22:18 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-08-15 16:28:03 +0200
commit898c5e140ddca47eac9e2150fb571d6eac3ed7d2 (patch)
tree2a764d71effb03de34dada83136fa18a53ef9add /source3/modules/vfs_xattr_tdb.c
parentf9b9433b752a663cdfda03967bd969cac5cf16bf (diff)
downloadsamba-898c5e140ddca47eac9e2150fb571d6eac3ed7d2.tar.gz
samba-898c5e140ddca47eac9e2150fb571d6eac3ed7d2.tar.bz2
samba-898c5e140ddca47eac9e2150fb571d6eac3ed7d2.zip
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
Diffstat (limited to 'source3/modules/vfs_xattr_tdb.c')
-rw-r--r--source3/modules/vfs_xattr_tdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/modules/vfs_xattr_tdb.c b/source3/modules/vfs_xattr_tdb.c
index 0352539e8c..f09eec2cd8 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);