IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 14, 2004, 1:48:25 PM (22 years ago)
Author:
desonia
Message:

adjustments to coorespond to adding persistent flag to psMemBlock, i.e.,
exclusion of internal library blocks in memory leak checks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psTrace.c

    r1744 r1810  
    99 *  @author George Gusciora, MHPCC
    1010 *
    11  *  @version $Revision: 1.33 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2004-09-09 01:46:15 $
     11 *  @version $Revision: 1.34 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2004-09-14 23:48:25 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    6565    p_psComponent* comp = psAlloc(sizeof(p_psComponent));
    6666
     67    p_psMemSetPersistent(comp,true);
    6768    p_psMemSetDeallocator(comp, (psFreeFcn) componentFree);
    6869    comp->name = psStringCopy(name);
     70    p_psMemSetPersistent((void*)comp->name,true);
    6971    comp->level = level;
    7072    comp->n = 0;
     
    8587    if (comp->subcomp != NULL) {
    8688        for (int i = 0; i < comp->n; i++) {
     89            p_psMemSetPersistent(comp->subcomp[i],false);
    8790            psFree(comp->subcomp[i]);
    8891        }
     92        p_psMemSetPersistent(comp->subcomp,false);
    8993        psFree(comp->subcomp);
    9094    }
    9195
    92     psFree((char *)comp->name);
     96    p_psMemSetPersistent((void*)comp->name,false);
     97    psFree((void*)comp->name);
    9398}
    9499
     
    195200            currentNode->subcomp = psRealloc(currentNode->subcomp,
    196201                                             (currentNode->n + 1) * sizeof(p_psComponent* ));
     202            p_psMemSetPersistent(currentNode->subcomp,true);
     203
    197204            currentNode->n = (currentNode->n) + 1;
    198205
Note: See TracChangeset for help on using the changeset viewer.