DEVEL153X-windows-bpluss-memleak-20080605

LICENSE MIT

when deleting entries from a directory for items with non-8.3 names
memory for the longname field would be leaked.  don't do that.


(cherry picked from commit 39d2ac1438c5708dc64098e5de10cd55efd6e93b)
This commit is contained in:
Jeffrey Altman 2008-06-23 03:52:04 +00:00
parent 62ea2904b3
commit 0d6ef2da2c

View File

@ -1341,6 +1341,8 @@ putFreeNode(Tree *B, Nptr node)
if (isdata(node)) {
if ( getdatakey(node).name )
free(getdatakey(node).name);
if ( getdatavalue(node).longname )
free(getdatavalue(node).longname);
} else { /* data node */
for ( i=1; i<=getfanout(B); i++ ) {
if (getkey(node, i).name)