IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7838


Ignore:
Timestamp:
Jul 6, 2006, 5:42:53 PM (20 years ago)
Author:
Paul Price
Message:

Free data as we go.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppFringe/src/ppFringeLoop.c

    r7826 r7838  
    2929            if (!pmCellRead(cell, data->inFile, config->database)) {
    3030                psLogMsg(__func__, PS_LOG_WARN, "Unable to read chip %s cell %s\n", chipName, cellName);
     31                pmCellFreeData(cell);
    3132                continue;
    3233            }
     
    3435            psArray *readouts = cell->readouts; // Array of component readouts
    3536            if (readouts->n == 0) {
     37                pmCellFreeData(cell);
    3638                continue;
    3739            }
     
    4446                psLogMsg(__func__, PS_LOG_WARN, "No image associated with readout in chip %s cell %s --- "
    4547                         "ignored.\n", chipName, cellName);
     48                pmCellFreeData(cell);
    4649                continue;
    4750            }
     
    5457                         "ignored.\n", chipName, cellName);
    5558                psFree(regions);
     59                pmCellFreeData(cell);
    5660                continue;
    5761            }
     
    6367                         "ignored.\n", chipName, cellName);
    6468                psFree(regions);
     69                pmCellFreeData(cell);
    6570                continue;
    6671            }
     
    7479                psFree(regions);
    7580                psFree(fringeStats);
     81                pmCellFreeData(cell);
    7682                continue;
    7783            }
     84
     85            psFree(regions);
     86            psFree(fringeStats);
     87            pmCellFreeData(cell);
    7888        }
     89        pmChipFreeData(chip);
    7990    }
    80 
     91    pmFPAFreeData(fpa);
    8192}
Note: See TracChangeset for help on using the changeset viewer.