IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 17, 2020, 12:19:25 PM (6 years ago)
Author:
eugene
Message:

make a PSF if forced photometry is requested; plug a leak

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/gDiff.20200202/src/gDiffExtras.c

    r41413 r41414  
    2121    if (!targetRO) {
    2222        pmCell *targetCell = pmFPAviewThisCell(view, target->fpa);
    23         targetRO = pmReadoutAlloc(targetCell);
     23        targetRO = pmReadoutAlloc(targetCell); // returns a reference and adds one to the cell
    2424        psAssert(targetRO, "programming error: could not make target readout");
     25        psFree (targetRO); // free the reference
    2526    }
    2627
     
    5556    if (hdu) {
    5657        psMetadata *header = psMetadataLookupMetadata(NULL, targetRO->analysis, "PSPHOT.HEADER"); // Header
    57         hdu->header = psMetadataCopy(hdu->header, header);
     58        if (header) {
     59          hdu->header = psMetadataCopy(hdu->header, header);
     60        }
    5861    }
    5962
Note: See TracChangeset for help on using the changeset viewer.