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 3a33dc990513b2bdedb58afe06e68c91862c0aa7
parent cc58867ecbf55a62cfd203cde87c4300fd112a6d
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed,  9 Feb 2022 14:04:40 +0100

Release the metadata if an error occurs at loading

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

diff --git a/src/shitran_isotope_metadata.c b/src/shitran_isotope_metadata.c @@ -547,6 +547,10 @@ exit: molecule_release(&molecule); return res; error: + if(metadata) { + SHITRAN(isotope_metadata_ref_put(metadata)); + metadata = NULL; + } goto exit; }