Skip to content

Instantly share code, notes, and snippets.

@felipensp
Created July 14, 2011 00:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felipensp/1081644 to your computer and use it in GitHub Desktop.
Save felipensp/1081644 to your computer and use it in GitHub Desktop.
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);
}
INTVAL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment