IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 16, 2014, 6:07:00 PM (12 years ago)
Author:
bills
Message:

free objects and objectOut arrays earlier.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotStackReadout.c

    r37466 r37611  
    344344    // measure some parameters for galxy science
    345345    psphotGalaxyParams (config, view, STACK_RAW); // pass 1 (detections->allSources)
     346
    346347    // create source children for the OUT filerule (for radial aperture photometry and output)
    347348    // NOTE: The new source children have image arrays pointing to the readout associated with
     
    356357        return psphotReadoutCleanup (config, view, STACK_RAW);
    357358    }
     359    // These arrays are no longer needed. The inputs' sources arrays have references to the data
     360    psFree (objects);
     361    psFree (objectsOut);
    358362
    359363    bool radial_apertures = psMetadataLookupBool(NULL, recipe, "RADIAL_APERTURES");
     
    412416    // measure aperture photometry corrections
    413417    if (!psphotApResid (config, view, STACK_RAW)) {
    414         psFree (objects);
    415         psFree (objectsOut);
    416418        psLogMsg ("psphot", 3, "failed on psphotApResid");
    417419        return psphotReadoutCleanup (config, view, STACK_RAW);
     
    434436
    435437    logMemStats("final");
    436 #if (1)
     438#if (0)
    437439    psphotSourceMemory(config, view, STACK_RAW);
    438440    psphotSourceMemory(config, view, STACK_OUT);
     
    450452    psphotStackRemoveChisqFromInputs(config, STACK_RAW);
    451453#endif
    452 
    453     psFree (objects);
    454     psFree (objectsOut);
    455454
    456455    // create the exported-metadata and free local data
Note: See TracChangeset for help on using the changeset viewer.