public

Parrot - memleak fix

  • Download Gist
parrot-imcc_cleanup_input-memleak
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
diff --git a/compilers/imcc/imcc.l b/compilers/imcc/imcc.l
index 92631e2..7b01b74 100644
--- a/compilers/imcc/imcc.l
+++ b/compilers/imcc/imcc.l
@@ -1351,8 +1351,8 @@ imcc_cleanup_input(ARGMOD(imc_info_t * imcc), PIOHANDLE file,
{
if (is_file)
PIO_CLOSE(imcc->interp, file);
- else
- Parrot_str_free_cstring(source_c);
+
+ Parrot_str_free_cstring(source_c);
}
INTVAL

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.