mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
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
This commit is contained in:
parent
f9b9433b75
commit
898c5e140d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user