IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30303


Ignore:
Timestamp:
Jan 19, 2011, 3:21:09 PM (15 years ago)
Author:
eugene
Message:

plug a couple of leaks in pmSubtraction code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20101205/psModules/src/imcombine/pmSubtraction.c

    r30288 r30303  
    968968    kernels->numStamps = stats->clippedNvalues;
    969969
    970     psLogMsg ("pmPSFtry", 4, "chisq vs flux fit: %f +/- %f\n", stats->sampleMean, stats->sampleStdev);
     970    psLogMsg ("pmPSFtry", 4, "chisq vs flux model: %e + %e flux + %e flux^2\n", model->coeff[0], model->coeff[1], model->coeff[2]);
     971    psLogMsg ("pmPSFtry", 4, "chisq vs flux resid: %f +/- %f\n", stats->sampleMean, stats->sampleStdev);
    971972    psLogMsg("psModules.imcombine", PS_LOG_INFO, "Mean deviation from %d stamps: %lf +/- %lf",  kernels->numStamps, kernels->mean, kernels->rms);
    972973
     
    14841485    psImageCovarianceSetThreads(oldThreads);
    14851486
    1486     // Copy anything that wasn't convolved
     1487    // Copy anything that wasn't convolved (they may have been allocated though, so free them)
    14871488    switch (kernels->mode) {
    14881489      case PM_SUBTRACTION_MODE_1:
    14891490        if (out2) {
     1491            psFree(out2->image);
     1492            psFree(out2->variance);
     1493            psFree(out2->mask);
     1494            psFree(out2->covariance);
    14901495            out2->image = psMemIncrRefCounter(ro2->image);
    14911496            out2->variance = psMemIncrRefCounter(ro2->variance);
     
    14961501      case PM_SUBTRACTION_MODE_2:
    14971502        if (out1) {
     1503            psFree(out1->image);
     1504            psFree(out1->variance);
     1505            psFree(out1->mask);
     1506            psFree(out1->covariance);
    14981507            out1->image = psMemIncrRefCounter(ro1->image);
    14991508            out1->variance = psMemIncrRefCounter(ro1->variance);
Note: See TracChangeset for help on using the changeset viewer.