aboutsummaryrefslogtreecommitdiff
path: root/src/link.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-10-15 21:06:04 -0400
committerAndrew Kelley <superjoe30@gmail.com>2017-10-15 21:06:04 -0400
commit562f91e875e870eb9f2948dd4de607441f5a6be9 (patch)
treebb1860a238106bade81cfdde40cea637680caec2 /src/link.cpp
parente3ad13e05425b3afc9dbac19438ee8a978dcd1e8 (diff)
downloadzig-562f91e875e870eb9f2948dd4de607441f5a6be9.tar.gz
zig-562f91e875e870eb9f2948dd4de607441f5a6be9.zip
clean up some resources
Diffstat (limited to 'src/link.cpp')
-rw-r--r--src/link.cpp2
1 files changed, 2 insertions, 0 deletions
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;
}