ksh/ksh93-2010-03-01-memleak.dif

31 lines
816 B
Plaintext
Raw Normal View History

cc: gsf@research.att.com
Subject: memory leaks
--------
Looks like all the leaks were caused by a stupid mistake I make
over a month ago. Here is the fix. We will have to update
the release for this one.
David Korn
dgk@research.att.com
*** src/cmd/ksh93/sh/name.c 2010-02-25 07:04:06.000000000 +0000
--- src/cmd/ksh93/sh/name.c 2010-03-04 11:30:08.000000000 +0000
***************
*** 1616,1622 ****
}
if(nv_isattr(np,NV_BINARY) && !(flags&NV_RAW))
tofree = 0;
! if(nv_isattr(np,NV_LJUST|NV_RJUST)!=(NV_LJUST|NV_RJUST))
tofree = 0;
if (sp)
{
--- 1616,1622 ----
}
if(nv_isattr(np,NV_BINARY) && !(flags&NV_RAW))
tofree = 0;
! if(nv_isattr(np,NV_LJUST|NV_RJUST) && nv_isattr(np,NV_LJUST|NV_RJUST)!=(NV_LJUST|NV_RJUST))
tofree = 0;
if (sp)
{