IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 2057


Ignore:
Timestamp:
Oct 12, 2004, 10:50:40 AM (22 years ago)
Author:
evanalst
Message:

Check for memory leaks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/dataManip/tst_psMatrixVectorArithmetic02.c

    r1648 r2057  
    1010 *  @author  Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.5 $  $Name: not supported by cvs2svn $
    13  *  @date  $Date: 2004-08-27 23:31:29 $
     12 *  @version $Revision: 1.6 $  $Name: not supported by cvs2svn $
     13 *  @date  $Date: 2004-10-12 20:50:40 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    8181
    8282
    83 #define CHECK_MEMORY                                                                                         \
    84 psMemCheckLeaks(0, NULL, stdout);                                                                            \
    85 int nBad = psMemCheckCorruption(0);                                                                          \
    86 if(nBad) {                                                                                                   \
    87     printf("ERROR: Found %d bad memory blocks\n", nBad);                                                     \
     83#define CHECK_MEMORY \
     84if( psMemCheckLeaks(0, NULL, stdout) != 0 ) {  \
     85    psError(__func__,"Memory leaks detected."); \
     86    return 50; \
     87} \
     88int nBad = psMemCheckCorruption(0); \
     89if(nBad) { \
     90    psError(__func__,"ERROR: Found %d bad memory blocks\n", nBad); \
     91    return 51; \
    8892}
    8993
Note: See TracChangeset for help on using the changeset viewer.