[svn:parrot] r49033 - trunk/src/pmc
tcurtis at svn.parrot.org
tcurtis at svn.parrot.org
Thu Sep 16 07:30:22 UTC 2010
Author: tcurtis
Date: Thu Sep 16 07:30:22 2010
New Revision: 49033
URL: https://trac.parrot.org/parrot/changeset/49033
Log:
Fix a potentially incorrect freeing in FileHandle's readline_interactive.
readline's readline function returns a pointer which must be freed.
mem_internal_free is not necessarily libc's free.
Modified:
trunk/src/pmc/filehandle.pmc
Modified: trunk/src/pmc/filehandle.pmc
==============================================================================
--- trunk/src/pmc/filehandle.pmc Thu Sep 16 07:25:17 2010 (r49032)
+++ trunk/src/pmc/filehandle.pmc Thu Sep 16 07:30:22 2010 (r49033)
@@ -380,7 +380,7 @@
add_history(r);
string_result = Parrot_str_new(INTERP, r, 0);
- mem_internal_free(r);
+ free(r);
}
#else
if (got_prompt)
More information about the parrot-commits
mailing list