summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-04-20 06:57:07 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:51:14 -0500
commitcfb00400df284bb337028d260be0961b994bef5a (patch)
treef2d27624c201d54c68bfde70e112689ae6f42754
parentb9ed2cc4ba760a90295ca31b0f09a2dd26a6629b (diff)
downloadsamba-cfb00400df284bb337028d260be0961b994bef5a.tar.gz
samba-cfb00400df284bb337028d260be0961b994bef5a.tar.bz2
samba-cfb00400df284bb337028d260be0961b994bef5a.zip
r22399: fix major memory leak
metze (This used to be commit cc71fa34961e7ab73eebc284194bf03e9b17525a)
-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;
}