star-hitran

Load line-by-line data from the HITRAN database
git clone git://git.meso-star.fr/star-hitran.git
Log | Files | Refs | README | LICENSE

commit e0ee0f141d0ab86fa952c7330328f2009f275f58
parent 189884c4eee1c365f116d4b3d0eef1ffa5d2e301
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Mon, 23 May 2022 14:47:42 +0200

Fix a possible memory leak on the creation of an isotope metadata

Diffstat:
Msrc/shtr_isotope_metadata.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/shtr_isotope_metadata.c b/src/shtr_isotope_metadata.c @@ -141,6 +141,10 @@ exit: *out_isotopes = metadata; return res; error: + if(metadata) { + SHTR(isotope_metadata_ref_put(metadata)); + metadata = NULL; + } goto exit; }