mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 05:27:44 +00:00
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:
parent
62ea2904b3
commit
0d6ef2da2c
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user