Commit 9159a231 authored by Olivier Lantsoght's avatar Olivier Lantsoght 🏁
Browse files

[Solvekin][CloseLoop] Freeing correct dvec size.

parent fd53795f
......@@ -45,7 +45,7 @@ int mbs_close_geo(MbsData *s, MbsAux *mbs_aux)
err = mbs_step_close_geo(s, mbs_aux);
if (err <0){
mbs_msg("\t \t >CLOSE GEO> Error in mbs_close_geo during a NR iteration \n");
free_dvec_0(qv);
free_dvec_1(qv);
return -50+err;
}
}
......@@ -54,11 +54,11 @@ int mbs_close_geo(MbsData *s, MbsAux *mbs_aux)
{
mbs_msg("\t \t >CLOSE GEO> Impossible to close the geometry after %d iterations \n", iter);
mbs_anim_close_geo(s, mbs_aux, qv);
free_dvec_0(qv);
free_dvec_1(qv);
return -50;
}
free_dvec_0(qv);
free_dvec_1(qv);
return iter;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment