diff options
Diffstat (limited to 'src/tokenizer.cpp')
| -rw-r--r-- | src/tokenizer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tokenizer.cpp b/src/tokenizer.cpp index 415352f33..eebdda765 100644 --- a/src/tokenizer.cpp +++ b/src/tokenizer.cpp @@ -323,6 +323,7 @@ TokenizerInitError init_tokenizer(Tokenizer *t, String fullpath) { char *c_str = gb_alloc_array(gb_heap_allocator(), char, fullpath.len+1); memcpy(c_str, fullpath.text, fullpath.len); c_str[fullpath.len] = '\0'; + defer (gb_free(gb_heap_allocator(), c_str)); gbFileContents fc = gb_file_read_contents(gb_heap_allocator(), true, c_str); |