From cfb00400df284bb337028d260be0961b994bef5a Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 20 Apr 2007 06:57:07 +0000 Subject: r22399: fix major memory leak metze (This used to be commit cc71fa34961e7ab73eebc284194bf03e9b17525a) --- source4/ntvfs/posix/xattr_tdb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source4') 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; } -- cgit