solstice-solver

Solver library of the solstice app
git clone git://git.meso-star.com/solstice-solver.git
Log | Files | Refs | README | LICENSE

commit 1279167055add1abd7e5db64f229a019d9cb923d
parent c5d7f32d541498aae2eb4760932c60af582850b4
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Thu, 14 Sep 2017 15:20:26 +0200

Fix previous commit.

Was using return instead of goto error, thus not going through the
cleaning code.

Diffstat:
Msrc/ssol_solver.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/ssol_solver.c b/src/ssol_solver.c @@ -893,7 +893,8 @@ trace_radiative_path last_segment = 1; /* Path reached its last segment */ if(!in_atm) { log_error(scn->dev, "Inconsistent medium description.\n"); - return RES_BAD_OP; + res = RES_BAD_OP; + goto error; } }