IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 8, 2006, 1:02:02 PM (20 years ago)
Author:
Paul Price
Message:

Fixing memory leaks and multiple frees

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_rel9_p0/psModules/src/astrom/pmFPA.c

    r6358 r6386  
    1212* XXX: Should we implement non-linear cell->chip transforms?
    1313*
    14 *  @version $Revision: 1.1.2.8 $ $Name: not supported by cvs2svn $
    15 *  @date $Date: 2006-02-08 01:16:11 $
     14*  @version $Revision: 1.1.2.9 $ $Name: not supported by cvs2svn $
     15*  @date $Date: 2006-02-08 23:02:02 $
    1616*
    1717*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    182182    for (psS32 i = 0 ; i < readouts->n ; i++) {
    183183        pmReadout *tmpReadout = readouts->data[i];
     184        if (! tmpReadout) {
     185            continue;
     186        }
    184187        readouts->data[i] = NULL;
    185188        tmpReadout->parent = NULL;
     
    206209    for (int i = 0 ; i < cells->n ; i++) {
    207210        pmCell *tmpCell = cells->data[i];
     211        if (! tmpCell) {
     212            continue;
     213        }
    208214        cells->data[i] = NULL;
    209215        tmpCell->parent = NULL;
Note: See TracChangeset for help on using the changeset viewer.