[svn:parrot] r43305 - branches/boehm_gc/src/pmc
bacek at svn.parrot.org
bacek at svn.parrot.org
Tue Dec 29 10:22:25 UTC 2009
Author: bacek
Date: Tue Dec 29 10:22:24 2009
New Revision: 43305
URL: https://trac.parrot.org/parrot/changeset/43305
Log:
Fix mem_sys_free vs free usage in OS.cwd. getcwd doesn't allocate memory using mem_sys_alloc, so don't try to use mem_sys_free to free it.
Modified:
branches/boehm_gc/src/pmc/os.pmc
Modified: branches/boehm_gc/src/pmc/os.pmc
==============================================================================
--- branches/boehm_gc/src/pmc/os.pmc Tue Dec 29 10:20:02 2009 (r43304)
+++ branches/boehm_gc/src/pmc/os.pmc Tue Dec 29 10:22:24 2009 (r43305)
@@ -86,7 +86,7 @@
#endif
if (cwd) {
STRING * const scwd = Parrot_str_new(INTERP, cwd, strlen(cwd));
- mem_sys_free(cwd);
+ free(cwd);
RETURN(STRING *scwd);
}
else {
More information about the parrot-commits
mailing list