IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 13, 2004, 10:49:56 AM (22 years ago)
Author:
desonia
Message:

fixed errors caused indirectly from the psList change.

File:
1 edited

Legend:

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

    r2681 r2703  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2004-12-10 02:50:15 $
     9 *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2004-12-13 20:49:56 $
    1111 *
    1212 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    7979        while ((desc = (psErrorDescription*)psListGetNext(iter)) != NULL) {
    8080            if (desc->code == code) {
     81                psFree(iter);
    8182                return desc;
    8283            }
    8384        }
     85        psFree(iter);
    8486    }
    8587    return NULL;
     
    140142        dynamicErrorCodes = psListAlloc(NULL);
    141143        p_psMemSetPersistent(dynamicErrorCodes,true);
     144
     145        p_psMemSetPersistent(dynamicErrorCodes->iterators,true);
     146        p_psMemSetPersistent(dynamicErrorCodes->iterators->data,true);
     147        for (int i = 0; i < dynamicErrorCodes->iterators->n;i++) {
     148            p_psMemSetPersistent(dynamicErrorCodes->iterators->data[i],true);
     149        }
    142150    }
    143151
Note: See TracChangeset for help on using the changeset viewer.