Ignore:
Timestamp:
Jan 8, 2002, 7:29:57 PM (24 years ago)
Author:
umoeller
Message:

Executable updates, mostly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/helpers/wphandle.c

    r127 r129  
    375375
    376376                    if (!arc)
    377                         if (treeInsert(ppTree,
    378                                        pcChildren,
    379                                        (TREE*)pNew,
    380                                        treeCompareStrings))
    381                             ; // @@todo if this fails, there are
     377                        if (!treeInsert(ppTree,
     378                                        pcChildren,
     379                                        (TREE*)pNew,
     380                                        treeCompareStrings))
     381                            // store PNODE in hash table
     382                            pHandlesBuf->NodeHashTable[pNode->usHandle] = pNew;
     383                        else
     384                            ;
     385                            // @@todo if this fails, there are
    382386                            // several handles for short name!!!
    383387                            // arc = ERROR_WPH_NODE_TREEINSERT_FAILED;
    384388
    385                     // store PNODE in hash table
    386                     pHandlesBuf->NodeHashTable[pNode->usHandle] = pNew;
     389                    if (arc)
     390                        free(pNew);
     391
    387392                }
    388393
     
    933938                               str.psz,
    934939                               str.ulLength + 1);
     940                xstrClear(&str);
    935941            }
    936942        }
Note: See TracChangeset for help on using the changeset viewer.