Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[PATCH] Free Context After Copy

5 views
Skip to first unread message

Chromatic

unread,
Mar 14, 2007, 1:41:55 AM3/14/07
to parrot-...@perl.org
Here's another Valgrind report:

==15692== 736 bytes in 1 blocks are definitely lost in loss record 2 of 4
==15692== at 0x40206D5: calloc (vg_replace_malloc.c:279)
==15692== by 0x41E82AE: mem_sys_allocate_zeroed (memory.c:79)
==15692== by 0x41E7BA1: Parrot_alloc_context (register.c:355)
==15692== by 0x41E761A: create_initial_context (register.c:136)
==15692== by 0x41E5AEF: make_interpreter (inter_create.c:122)
==15692== by 0x424308E: Parrot_new (embed.c:48)
==15692== by 0x804A433: main (main.c:514)

Here's a patch which appears to do the right thing.

-- c

context_leak.patch
0 new messages