From 32c6dcde6c3384805f0629ae168db38f06dbb17b Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Tue, 8 Oct 2019 00:36:19 +0200 Subject: [PATCH] :art: Improve free_func_def --- ast | 2 +- src/lib/import.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.43.0