From: fennecdjay Date: Mon, 7 Oct 2019 22:36:19 +0000 (+0200) Subject: :art: Improve free_func_def X-Git-Tag: nightly~2198^2~121 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=32c6dcde6c3384805f0629ae168db38f06dbb17b;p=gwion.git :art: Improve free_func_def --- diff --git a/ast b/ast index 52b685d2..a09aa611 160000 --- a/ast +++ b/ast @@ -1 +1 @@ -Subproject commit 52b685d2b39fa1cdee9220d9a2f2eff18bb82424 +Subproject commit a09aa611aef29d2445f0b9bb769514d58348787a diff --git a/src/lib/import.c b/src/lib/import.c index f986de7c..c8333c82 100644 --- a/src/lib/import.c +++ b/src/lib/import.c @@ -486,6 +486,7 @@ ANN m_int gwi_func_end(const Gwi gwi, const ae_flag flag) { return GW_OK; } if(traverse_func_def(gwi->gwion->env, def) < 0) { + def->d.dl_func_ptr = NULL; free_func_def(gwi->gwion->mp, def); return GW_ERROR; }