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:
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);