IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 2041


Ignore:
Timestamp:
Oct 8, 2004, 5:11:45 PM (22 years ago)
Author:
evanalst
Message:

Check for memory leaks.

Location:
trunk/psLib/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/astronomy/tst_psMetadata_05.c

    r2039 r2041  
    2222*  @author  Ross Harman, MHPCC
    2323*
    24 *  @version $Revision: 1.5 $  $Name: not supported by cvs2svn $
    25 *  @date  $Date: 2004-10-09 03:05:20 $
     24*  @version $Revision: 1.6 $  $Name: not supported by cvs2svn $
     25*  @date  $Date: 2004-10-09 03:11:45 $
    2626*
    2727*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    239239    psFree(item7);
    240240    psFree(item8);
    241     psMemCheckLeaks(0, NULL, stdout);
     241    if ( psMemCheckLeaks(0, NULL, stdout) != 0 ) {
     242        psError(__func__,"Memory leaks detected.");
     243        return 50;
     244    }
    242245    psMemCheckCorruption(0);
    243246    int nBad = psMemCheckCorruption(0);
    244247    if(nBad) {
    245248        printf("ERROR: Found %d bad memory blocks\n", nBad);
     249        return 51;
    246250    }
    247251    printFooter(stdout, "psMetadata", "Test M - Free psMetadata", true);
  • trunk/psLib/test/collections/tst_psMetadata_05.c

    r2039 r2041  
    2222*  @author  Ross Harman, MHPCC
    2323*
    24 *  @version $Revision: 1.5 $  $Name: not supported by cvs2svn $
    25 *  @date  $Date: 2004-10-09 03:05:20 $
     24*  @version $Revision: 1.6 $  $Name: not supported by cvs2svn $
     25*  @date  $Date: 2004-10-09 03:11:45 $
    2626*
    2727*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    239239    psFree(item7);
    240240    psFree(item8);
    241     psMemCheckLeaks(0, NULL, stdout);
     241    if ( psMemCheckLeaks(0, NULL, stdout) != 0 ) {
     242        psError(__func__,"Memory leaks detected.");
     243        return 50;
     244    }
    242245    psMemCheckCorruption(0);
    243246    int nBad = psMemCheckCorruption(0);
    244247    if(nBad) {
    245248        printf("ERROR: Found %d bad memory blocks\n", nBad);
     249        return 51;
    246250    }
    247251    printFooter(stdout, "psMetadata", "Test M - Free psMetadata", true);
Note: See TracChangeset for help on using the changeset viewer.