IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 1, 2011, 6:16:42 PM (15 years ago)
Author:
eugene
Message:

plug leak in psFitsReadImage; fix scaling on input (status needs to be 0 before calling cfitsio functions)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/fits/psFitsImage.c

    r30636 r31597  
    485485      double boffset;
    486486      int status;
     487      status = 0;
    487488      fits_read_key_dbl(fits->fd, "BOFFSET", &boffset, NULL, &status);
    488       outImage = psFitsScaleFromDisk(outImage,boffset);
     489      psImage *newImage = psFitsScaleFromDisk(outImage,boffset);
     490      psFree (outImage);
     491      outImage = newImage;
    489492    }
    490493    psFree(info);
Note: See TracChangeset for help on using the changeset viewer.