rlancaste / stellarsolver

GNU General Public License v3.0
89 stars 47 forks source link

Resource leak in astrometry/util/fitsioutils.c #33

Closed TallFurryMan closed 3 years ago

TallFurryMan commented 3 years ago

https://github.com/rlancaste/stellarsolver/blob/e0aa8d394aa9ddd5ad9c1052fff249d019913c49/stellarsolver/astrometry/util/fitsioutils.c#L253-L257

fits_pad_file and fits_pad_file_with are not closing fid, thus leaking that on success.

rlancaste commented 3 years ago

I think this one is fixed