IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 30, 2005, 4:07:12 PM (21 years ago)
Author:
drobbin
Message:

Updated code w.r.t the latest api-delta report

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psMemory.c

    r4898 r4920  
    88*  @author Robert Lupton, Princeton University
    99*
    10 *  @version $Revision: 1.62 $ $Name: not supported by cvs2svn $
    11 *  @date $Date: 2005-08-30 01:14:13 $
     10*  @version $Revision: 1.63 $ $Name: not supported by cvs2svn $
     11*  @date $Date: 2005-08-31 02:07:11 $
    1212*
    1313*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    480480 */
    481481int psMemCheckLeaks(psMemId id0,
    482                     psMemBlock* ** arr,
     482                    psMemBlock ***array,
    483483                    FILE * fd,
    484                     psBool persistence)
     484                    bool persistence)
    485485{
    486486    psS32 nleak = 0;
     
    509509    pthread_mutex_unlock(&memBlockListMutex);
    510510
    511     if (nleak == 0 || arr == NULL) {
     511    if (nleak == 0 || array == NULL) {
    512512        return nleak;
    513513    }
    514514
    515     *arr = p_psAlloc(nleak * sizeof(psMemBlock), __FILE__, __LINE__);
     515    *array = p_psAlloc(nleak * sizeof(psMemBlock), __FILE__, __LINE__);
    516516    pthread_mutex_lock(&memBlockListMutex);
    517517
     
    521521                (iter->id >= id0)) {
    522522
    523             (*arr)[j++] = iter;
     523            (*array)[j++] = iter;
    524524            if (j == nleak) {              // found them all
    525525                break;
     
    897897                    break;
    898898                }
    899          
     899
    900900        *//*    case PS_DATA_REGION:
    901901                if ( psMemCheckRegion(ptr) )
Note: See TracChangeset for help on using the changeset viewer.