From 7e14335b3f6e7e8992004c9c5279a893b3fb39d4 Mon Sep 17 00:00:00 2001 From: "cantab.net!aia21" Date: Fri, 14 Mar 2003 00:48:50 +0000 Subject: [PATCH] Fix attempt to release I30 constant. (Logical change 1.127) --- libntfs/attrib.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libntfs/attrib.c b/libntfs/attrib.c index 386376fd..35c48ce0 100644 --- a/libntfs/attrib.c +++ b/libntfs/attrib.c @@ -38,6 +38,7 @@ #include "inode.h" #include "runlist.h" #include "lcnalloc.h" +#include "dir.h" uchar_t AT_UNNAMED[] = { const_cpu_to_le16('\0') }; @@ -383,7 +384,8 @@ void ntfs_attr_close(ntfs_attr *na) { if (NAttrNonResident(na) && na->rl) free(na->rl); - if (na->name != AT_UNNAMED) + /* Don't release if using an internal constant. */ + if (na->name != AT_UNNAMED && na->name != I30) free(na->name); free(na); return;