aboutsummaryrefslogtreecommitdiff
path: root/src/check_builtin.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-01-04 13:52:38 +0000
committergingerBill <bill@gingerbill.org>2023-01-04 13:52:38 +0000
commitd4e18109da5fa051d689be84a6ecf1e77348c74e (patch)
treed2c359f5ddb40b8d82d913d7763a4944e4587a01 /src/check_builtin.cpp
parentd06a0e7093c3f06a474a040385f1b9dfdfce29ad (diff)
Move walking of dependencies for procedures to just before calculating the min dep set
Diffstat (limited to 'src/check_builtin.cpp')
-rw-r--r--src/check_builtin.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp
index 606283c32..294bc7da8 100644
--- a/src/check_builtin.cpp
+++ b/src/check_builtin.cpp
@@ -1118,8 +1118,7 @@ gb_internal bool cache_load_file_directive(CheckerContext *c, Ast *call, String
}
});
- char *c_str = alloc_cstring(heap_allocator(), path);
- defer (gb_free(heap_allocator(), c_str));
+ char *c_str = alloc_cstring(temporary_allocator(), path);
gbFile f = {};
if (cache == nullptr) {