Skip to content
Snippets Groups Projects
Commit 07ec05d4 authored by Christoph Sprunk's avatar Christoph Sprunk
Browse files

fixing a memory leak in sm_icp when an error occured in an icp loop

parent 39aefd0d
No related branches found
No related tags found
No related merge requests found
......@@ -175,10 +175,11 @@ void sm_icp(struct sm_params*params, struct sm_result*res) {
res->iterations = iterations;
res->nvalid = nvalid;
gsl_vector_free(x_new);
gsl_vector_free(x_old);
gsl_vector_free(best_x);
}
gsl_vector_free(x_new);
gsl_vector_free(x_old);
egsl_pop_named("sm_icp");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment