IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25334


Ignore:
Timestamp:
Sep 10, 2009, 5:27:58 PM (17 years ago)
Author:
Paul Price
Message:

Fix memory bug.
Report elapsed time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap/psphot/src/psphotEfficiency.c

    r25332 r25334  
    412412
    413413    pmDetEff *de = pmDetEffAlloc(magLim, numSources, numBins); // Detection efficiency
    414     de->magOffsets = magOffsets;
     414    de->magOffsets = psVectorCopy(NULL, magOffsets, PS_TYPE_F32);
    415415    de->counts = count;
    416416    de->magDiffMean = magDiffMean;
     
    422422    psFree(de);
    423423
     424    psLogMsg("psphot", PS_LOG_INFO, "Detection efficiency: %lf sec\n", psTimerClear("psphot.fake"));
     425
     426
    424427    return true;
    425428}
Note: See TracChangeset for help on using the changeset viewer.