IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 28, 2008, 11:18:55 AM (18 years ago)
Author:
Paul Price
Message:

Plugging memory leaks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmPSFEnvelope.c

    r16607 r16714  
    186186        if (!psImageOverlaySection(readout->image, subImage, x0, y0, "=")) {
    187187            psError(PS_ERR_UNKNOWN, false, "Unable to overlay PSF");
     188            psFree(subImage);
    188189            psFree(readout);
    189190            psFree(xOffset);
     
    192193            return NULL;
    193194        }
     195        psFree(subImage);
    194196    }
    195197    psFree(xOffset);
    196198    psFree(yOffset);
     199    psFree(envelope);
    197200
    198201    readout->weight = (psImage*)psBinaryOp(NULL, readout->image, "+", psScalarAlloc(1.0, PS_TYPE_F32));
     
    297300#endif
    298301
     302    psFree(fakes);
    299303    psFree(readout);
    300304
Note: See TracChangeset for help on using the changeset viewer.