From 562f91e875e870eb9f2948dd4de607441f5a6be9 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 15 Oct 2017 21:06:04 -0400 Subject: clean up some resources --- src/link.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/link.cpp') diff --git a/src/link.cpp b/src/link.cpp index 35b350df0f..475e42fd7b 100644 --- a/src/link.cpp +++ b/src/link.cpp @@ -65,6 +65,8 @@ static Buf *build_o_raw(CodeGen *parent_gen, const char *oname, Buf *full_path) os_path_join(parent_gen->cache_dir, o_out_name, output_path); codegen_link(child_gen, buf_ptr(output_path)); + codegen_destroy(child_gen); + return output_path; } -- cgit v1.2.3