commit 500a3d18b2eca9176573552f48a22fe16c055c20
parent f518a97ce3dc88d91c63941b35c8687a6aef9119
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date: Fri, 12 Oct 2018 11:31:25 +0200
Fix a memleak
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/sdis_solve.c b/src/sdis_solve.c
@@ -243,6 +243,7 @@ sdis_solve_probe
++N;
}
}
+ if(res != RES_OK) goto error;
estimator->nrealisations = N;
estimator->nfailures = nrealisations - N;
@@ -386,6 +387,7 @@ sdis_solve_probe_boundary
++N;
}
}
+ if(res != RES_OK) goto error;
estimator->nrealisations = N;
estimator->nfailures = nrealisations - N;