Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Parrot - memleak fix
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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.