Changeset 1242
- Timestamp:
- Jul 19, 2004, 12:38:36 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/sysUtils/tst_psMemory.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/sysUtils/tst_psMemory.c
r1193 r1242 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1. 19$ $Name: not supported by cvs2svn $9 * @date $Date: 2004-07- 08 01:05:01$8 * @version $Revision: 1.20 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2004-07-19 22:38:36 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 35 35 static psMemoryId memAllocateCallback(const psMemBlock *ptr); 36 36 static psMemoryId memFreeCallback(const psMemBlock *ptr); 37 int TPcheckLeaks(void); 38 int TPmemCorruption(void); 37 static int TPcheckLeaks(void); 38 static int TPmemCorruption(void); 39 static int TPmultipleFree(void); 39 40 void memProblemCallback(const psMemBlock *ptr, const char *file, int lineno); 40 41 … … 54 55 {TPmemCorruption,455,"psMemCorruption",0,false}, 55 56 {TPFreeReferencedMemory,456,"freeReferencedMemory",0,false}, 57 {TPmultipleFree,699,"multipleFree",-6,false}, 56 58 {NULL} 57 59 }; … … 522 524 return NULL; 523 525 } 526 527 int TPmultipleFree(void) 528 { 529 530 void* buffer = psAlloc(1024); 531 532 psFree(buffer); 533 534 psLogMsg(__func__,PS_LOG_INFO,"Next should be an error about multiple freeing."); 535 psFree(buffer); 536 537 return 0; 538 }
Note:
See TracChangeset
for help on using the changeset viewer.
