IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 17, 2011, 5:00:30 PM (16 years ago)
Author:
eugene
Message:

plug leaks (mostly unfreed pmFPAviews)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20101205/ppSub/src/ppSubMatchPSFs.c

    r29937 r30285  
    7878        return true;
    7979    }
    80 
    8180    psFree(view);
    8281
     
    127126    if (!inSourceRO || !refSourceRO) {
    128127        psError(PPSUB_ERR_DATA, false, "Unable to scale kernel, since no sources were provided.");
     128        psFree(view);
    129129        return false;
    130130    }
     
    166166    if (!psMetadataLookupBool(NULL, recipe, "SCALE")) {
    167167        // No scaling requested
    168         psFree(view);
    169168        return true;
    170169    }
     
    221220        pmCell *cell = pmFPAfileThisCell(config->files, view, "PPSUB.INPUT.CONV"); // Cell for convolved input
    222221        inConv = pmReadoutAlloc(cell);
     222        psFree(inConv);
    223223    }
    224224    pmReadout *refConv = pmFPAfileThisReadout(config->files, view, "PPSUB.REF.CONV"); // Reference convolved
     
    226226        pmCell *cell = pmFPAfileThisCell(config->files, view, "PPSUB.REF.CONV"); // Cell for convolved ref.
    227227        refConv = pmReadoutAlloc(cell);
     228        psFree(refConv);
    228229    }
    229230
Note: See TracChangeset for help on using the changeset viewer.