summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/ntvfs/posix/xattr_tdb.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/ntvfs/posix/xattr_tdb.c b/source4/ntvfs/posix/xattr_tdb.c
index cea50bb4fa..1e0b100ba8 100644
--- a/source4/ntvfs/posix/xattr_tdb.c
+++ b/source4/ntvfs/posix/xattr_tdb.c
@@ -229,5 +229,7 @@ NTSTATUS unlink_xattr_tdb(struct pvfs_state *pvfs, const char *fname)
delete_xattr_tdb(pvfs, s, fname, -1);
}
- return delete_xattr_tdb(pvfs, XATTR_LIST_ATTR, fname, -1);
+ status = delete_xattr_tdb(pvfs, XATTR_LIST_ATTR, fname, -1);
+ talloc_free(mem_ctx);
+ return status;
}