rnatm

Load and structure data describing an atmosphere
git clone git://git.meso-star.fr/rnatm.git
Log | Files | Refs | README | LICENSE

commit 7176d1321f3feec29c5587a3d06854a109e7bfcb
parent d7ddc6fee9d974f0023abf924e4d5b2bc5e418e5
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Mon, 25 Jul 2022 12:01:08 +0200

Fix a possible double memory free in phase function parsing

Diffstat:
Msrc/rnatm_properties.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/rnatm_properties.c b/src/rnatm_properties.c @@ -152,7 +152,7 @@ parse_phase_fn char* tk_ctx = NULL; struct rnsf_create_args args = RNSF_CREATE_ARGS_DEFAULT; struct rnsf* phase_fn = NULL; - int wexp_is_allocated = 1; + int wexp_is_allocated = 0; res_T res = RES_OK; int err = 0; ASSERT(atm && aerosol && txtrdr && out_phase_fn);