IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 10, 2007, 12:30:23 PM (19 years ago)
Author:
jhoblitt
Message:

free memBlock & memBlock->backtrace

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/jch-memory/psLib/src/sys/psMemory.c

    r10999 r11014  
    1010*  @author Joshua Hoblitt, University of Hawaii
    1111*
    12 *  @version $Revision: 1.88.2.23 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2007-01-09 22:38:53 $
     12*  @version $Revision: 1.88.2.24 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2007-01-10 22:30:23 $
    1414*
    1515*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    791791    MUTEX_UNLOCK(&memBlockListMutex);
    792792
     793    // invoke free only after we've released the block list lock as free()
     794    // could take awhile.  We can get away with this as at this point the
     795    // memBlock is no longer part of the mem block list.
     796    #if defined(PS_MEM_BACKTRACE) && defined(HAVE_BACKTRACE)
     797
     798    free(memBlock->backtrace);
     799    #endif
     800
     801    free(memBlock);
     802
    793803    // since we freed it, make sure we return NULL.
    794804    return NULL;
Note: See TracChangeset for help on using the changeset viewer.