[svn:parrot] r40825 - trunk/src
NotFound at svn.parrot.org
NotFound at svn.parrot.org
Thu Aug 27 13:14:54 UTC 2009
Author: NotFound
Date: Thu Aug 27 13:14:53 2009
New Revision: 40825
URL: https://trac.parrot.org/parrot/changeset/40825
Log:
fix a leak due to a forgotten item in the conversion of Object PMC to auto_attrs
Modified:
trunk/src/oo.c
Modified: trunk/src/oo.c
==============================================================================
--- trunk/src/oo.c Thu Aug 27 07:42:54 2009 (r40824)
+++ trunk/src/oo.c Thu Aug 27 13:14:53 2009 (r40825)
@@ -291,9 +291,8 @@
/* Flag that it is an object */
PObj_is_object_SET(cloned);
- /* Now create the underlying structure, and clone attributes list.class. */
- cloned_guts = mem_allocate_typed(Parrot_Object_attributes);
- PMC_data(cloned) = cloned_guts;
+ /* Now clone attributes list.class. */
+ cloned_guts = (Parrot_Object_attributes *) PMC_data(cloned);
cloned_guts->_class = obj->_class;
cloned_guts->attrib_store = NULL;
cloned_guts->attrib_store = VTABLE_clone(interp, obj->attrib_store);
More information about the parrot-commits
mailing list