Changeset 4920 for trunk/psLib/src/sys/psMemory.c
- Timestamp:
- Aug 30, 2005, 4:07:12 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sys/psMemory.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psMemory.c
r4898 r4920 8 8 * @author Robert Lupton, Princeton University 9 9 * 10 * @version $Revision: 1.6 2$ $Name: not supported by cvs2svn $11 * @date $Date: 2005-08-3 0 01:14:13$10 * @version $Revision: 1.63 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2005-08-31 02:07:11 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 480 480 */ 481 481 int psMemCheckLeaks(psMemId id0, 482 psMemBlock * ** arr,482 psMemBlock ***array, 483 483 FILE * fd, 484 psBool persistence)484 bool persistence) 485 485 { 486 486 psS32 nleak = 0; … … 509 509 pthread_mutex_unlock(&memBlockListMutex); 510 510 511 if (nleak == 0 || arr == NULL) {511 if (nleak == 0 || array == NULL) { 512 512 return nleak; 513 513 } 514 514 515 *arr = p_psAlloc(nleak * sizeof(psMemBlock), __FILE__, __LINE__);515 *array = p_psAlloc(nleak * sizeof(psMemBlock), __FILE__, __LINE__); 516 516 pthread_mutex_lock(&memBlockListMutex); 517 517 … … 521 521 (iter->id >= id0)) { 522 522 523 (*arr )[j++] = iter;523 (*array)[j++] = iter; 524 524 if (j == nleak) { // found them all 525 525 break; … … 897 897 break; 898 898 } 899 899 900 900 *//* case PS_DATA_REGION: 901 901 if ( psMemCheckRegion(ptr) )
Note:
See TracChangeset
for help on using the changeset viewer.
