Changeset 946 for trunk/psLib/test/image/tst_psImage.c
- Timestamp:
- Jun 9, 2004, 9:27:09 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/image/tst_psImage.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/image/tst_psImage.c
r939 r946 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1.1 2$ $Name: not supported by cvs2svn $9 * @date $Date: 2004-06-09 00:28:09 $8 * @version $Revision: 1.13 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2004-06-09 19:27:09 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 224 224 // children is freed. 225 225 psImageFree(image); 226 psMemCheckLeaks(currentId,NULL,NULL); 226 if (psMemCheckLeaks(currentId,NULL,NULL) != 0) { 227 psError(__func__,"Memory Leaks Detected"); 228 return 64; 229 } 227 230 psMemCheckCorruption(1); 228 231 … … 232 235 // #548: Verify program execution doesn't stop, if the input psImage structure pointer is null. 233 236 psImageFree(NULL); 234 psMemCheckLeaks(currentId,NULL,NULL); 237 if (psMemCheckLeaks(currentId,NULL,NULL) != 0) { 238 psError(__func__,"Memory Leaks Detected"); 239 return 64; 240 } 235 241 psMemCheckCorruption(1); 236 242 … … 243 249 psImageFree(image); 244 250 245 psMemCheckLeaks(currentId,NULL,NULL); 251 if (psMemCheckLeaks(currentId,NULL,NULL) != 0) { 252 psError(__func__,"Memory Leaks Detected"); 253 return 64; 254 } 246 255 psMemCheckCorruption(1); 247 256 … … 512 521 // Verify no memory leaks or corruption are detected for a psImage structure 513 522 // Verify no memory leaks or corruption are detected for a psImage structure 514 psMemCheckLeaks(currentId,NULL,NULL); 523 if (psMemCheckLeaks(currentId,NULL,NULL) != 0) { 524 psError(__func__,"Memory Leaks Detected"); 525 return 64; 526 } 515 527 psMemCheckCorruption(1); 516 528
Note:
See TracChangeset
for help on using the changeset viewer.
