aboutsummaryrefslogtreecommitdiff
path: root/src/tokenizer.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2016-09-08 18:28:18 +0100
committerGinger Bill <bill@gingerbill.org>2016-09-08 18:28:18 +0100
commit56dd12c54c20b2e4a7f896999ece1cf184f09e88 (patch)
tree64947563e064550cef3ecdc26bd9b36bb05b48a3 /src/tokenizer.cpp
parentc6d02e4778486c350a732105b6413ba1d32a234a (diff)
Fix match statements for the new AstNodeArray type
Diffstat (limited to 'src/tokenizer.cpp')
-rw-r--r--src/tokenizer.cpp1
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);