From 17ab23f1f06ed11602c883dd5fce406fd10637db Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Fri, 30 Sep 2016 23:34:32 +0100 Subject: Const Aggregate Literals for IR; Module path fix --- src/parser.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/parser.cpp') diff --git a/src/parser.cpp b/src/parser.cpp index 6824d9561..136e88f33 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -2919,10 +2919,7 @@ String get_fullpath_relative(gbAllocator a, String base_dir, String path) { } String get_fullpath_core(gbAllocator a, String path) { - String module_dir = get_module_dir(gb_heap_allocator()); - defer (if (module_dir.len > 0) { - gb_free(gb_heap_allocator(), module_dir.text); - }); + String module_dir = get_module_dir(); char core[] = "core/"; isize core_len = gb_size_of(core)-1; -- cgit v1.2.3