xattr_tdb_getxattr() doesn't free its stackframe.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
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 (vfs_stat_smb_fname(handle->conn, path, &sbuf) == -1) {
TALLOC_FREE(frame);
return -1;
}
memcpy(value, blob.data, xattr_size);
+ TALLOC_FREE(frame);
return xattr_size;
}