IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 12, 2009, 4:38:34 PM (16 years ago)
Author:
Paul Price
Message:

Fix SEGV from doing cleanup in wrong place. Moved deletion of temporary files to ppStackFinish().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackLoop.c

    r26106 r26117  
    106106    ppStackMemDump("final");
    107107
     108    // Clean up
     109    psTrace("ppStack", 2, "Cleaning up after combination....\n");
     110    if (!ppStackCleanup(stack, options, config)) {
     111        psError(PS_ERR_UNKNOWN, false, "Unable to clean up.");
     112        psFree(stack);
     113        psFree(options);
     114        return false;
     115    }
     116    psLogMsg("ppStack", PS_LOG_INFO, "Stage 6: Cleanup, WCS & JPEGS: %f sec", psTimerClear("PPSTACK_STEPS"));
     117    ppStackMemDump("cleanup");
     118
    108119    psFree(stack);
    109120
     
    125136            return false;
    126137        }
    127         psLogMsg("ppStack", PS_LOG_INFO, "Stage 6: Unconvolved Stack: %f sec", psTimerClear("PPSTACK_STEPS"));
     138        psLogMsg("ppStack", PS_LOG_INFO, "Stage 7: Unconvolved Stack: %f sec", psTimerClear("PPSTACK_STEPS"));
    128139        ppStackMemDump("unconv");
    129140
     
    132143    psFree(options->cells); options->cells = NULL;
    133144#endif
    134 
    135     // Clean up
    136     psTrace("ppStack", 2, "Cleaning up after combination....\n");
    137     if (!ppStackCleanup(stack, options, config)) {
    138         psError(PS_ERR_UNKNOWN, false, "Unable to clean up.");
    139         psFree(stack);
    140         psFree(options);
    141         return false;
    142     }
    143     psLogMsg("ppStack", PS_LOG_INFO, "Stage 7: Cleanup, WCS & JPEGS: %f sec", psTimerClear("PPSTACK_STEPS"));
    144     ppStackMemDump("cleanup");
    145145
    146146    // Photometry
Note: See TracChangeset for help on using the changeset viewer.