From: Jérémie Astor Date: Sat, 9 May 2020 19:27:39 +0000 (+0200) Subject: :art: Use func_def_cleaner X-Git-Tag: nightly~1611 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=348c3d6a8105a46d853230a0bd0a1164c842d8ec;p=gwion.git :art: Use func_def_cleaner --- diff --git a/src/import/fdef.c b/src/import/fdef.c index ea6d189c..10af875a 100644 --- a/src/import/fdef.c +++ b/src/import/fdef.c @@ -13,6 +13,7 @@ #include "operator.h" #include "import.h" #include "gwi.h" +#include "clean.h" ANN2(1,2,3) static m_bool dl_func_init(const Gwi gwi, const restrict m_str t, const restrict m_str n) { @@ -66,8 +67,7 @@ ANN static m_bool section_fdef(const Gwi gwi, const Func_Def fdef) { } ANN static m_bool error_fdef(const Gwi gwi, const Func_Def fdef) { - fdef->d.dl_func_ptr = NULL; - free_func_def(gwi->gwion->mp, fdef); + func_def_cleaner(gwi->gwion, fdef); return GW_ERROR; }