From 2848f06bad1ad576309c7a7f16e7892ee1913c99 Mon Sep 17 00:00:00 2001 From: szaka Date: Tue, 17 Jun 2008 22:40:43 +0000 Subject: [PATCH] fix memory leak when removing streams or xattrs (Jean-Pierre Andre) --- libntfs-3g/attrib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libntfs-3g/attrib.c b/libntfs-3g/attrib.c index 68db3945..d298d864 100644 --- a/libntfs-3g/attrib.c +++ b/libntfs-3g/attrib.c @@ -3286,6 +3286,7 @@ int ntfs_attr_rm(ntfs_attr *na) } ntfs_attr_reinit_search_ctx(ctx); } + ntfs_attr_put_search_ctx(ctx); if (errno != ENOENT) { ntfs_log_trace("Attribute lookup failed. Probably leaving inconstant " "metadata.\n");