From e14583bed75dadb8de23ee5b7f5ff7f8bfdf77de Mon Sep 17 00:00:00 2001 From: "cantab.net!aia21" Date: Thu, 22 Jan 2004 23:53:36 +0000 Subject: [PATCH] Fix memory leek in error code path ntfs_attr_open(). Thanks to Christophe Grenier who used Valgrind to find it. (Logical change 1.272) --- libntfs/attrib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libntfs/attrib.c b/libntfs/attrib.c index a41b85b5..0c600a12 100644 --- a/libntfs/attrib.c +++ b/libntfs/attrib.c @@ -374,6 +374,7 @@ ntfs_attr *ntfs_attr_open(ntfs_inode *ni, const ATTR_TYPES type, put_err_out: ntfs_attr_put_search_ctx(ctx); err_out: + free(na); errno = err; return NULL; }