Fix attempt to release I30 constant.

(Logical change 1.127)
edge.strict_endians
cantab.net!aia21 2003-03-14 00:48:50 +00:00
parent 6f221ba794
commit 7e14335b3f
1 changed files with 3 additions and 1 deletions

View File

@ -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;