From 56dd12c54c20b2e4a7f896999ece1cf184f09e88 Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Thu, 8 Sep 2016 18:28:18 +0100 Subject: Fix match statements for the new AstNodeArray type --- src/tokenizer.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/tokenizer.cpp') 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); -- cgit v1.2.3