IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11419


Ignore:
Timestamp:
Jan 29, 2007, 6:28:08 PM (19 years ago)
Author:
jhoblitt
Message:

change psCheckMemLeaks() to exit immediately if no memory has been allocated

File:
1 edited

Legend:

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

    r11416 r11419  
    1010*  @author Joshua Hoblitt, University of Hawaii
    1111*
    12 *  @version $Revision: 1.90 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2007-01-30 03:00:50 $
     12*  @version $Revision: 1.91 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2007-01-30 04:28:08 $
    1414*
    1515*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    583583    MUTEX_LOCK(&memBlockListMutex);
    584584
     585    // if topBlock is NULL there's nothing to do
     586    if (!topBlock) {
     587        MUTEX_UNLOCK(&memBlockListMutex);
     588        return 0;
     589    }
     590
    585591    // find the very first memblock
    586592    psMemBlock *memBlock = NULL;
Note: See TracChangeset for help on using the changeset viewer.