From 96c38815fea8664847d8bbadfb21a6fbec066f77 Mon Sep 17 00:00:00 2001 From: servostar Date: Thu, 10 Oct 2024 20:21:46 +0200 Subject: [PATCH] fix: freed cached memory address --- src/set/set.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/set/set.c b/src/set/set.c index 74cd9e8..93fbdf6 100644 --- a/src/set/set.c +++ b/src/set/set.c @@ -2655,7 +2655,7 @@ int createFunction(Function* function, AST_NODE_PTR currentNode) { char* modules = module_ref_to_str(currentNode->location.module_ref); char* composed_name = g_strjoin("", modules, "::", function->name, NULL); char* cached_composed_name = mem_strdup(MemoryNamespaceSet, composed_name); - g_free(modules); + g_free(composed_name); function->name = cached_composed_name; }