From 348c3d6a8105a46d853230a0bd0a1164c842d8ec Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Sat, 9 May 2020 21:27:39 +0200 Subject: [PATCH] :art: Use func_def_cleaner --- src/import/fdef.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.43.0