Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add missing mark in KnowHOWREPR that could lead to segfaults and othe…
…r corruption.
  • Loading branch information
jnthn committed Aug 31, 2012
1 parent c07af7a commit c0fbe4d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/6model/reprs/KnowHOWREPR.c
Expand Up @@ -59,6 +59,8 @@ static void copy_to(PARROT_INTERP, STable *st, void *src, void *dest) {
/* This Parrot-specific addition to the API is used to mark an object. */
static void gc_mark(PARROT_INTERP, STable *st, void *data) {
KnowHOWREPRBody *body = (KnowHOWREPRBody *)data;
if (!STRING_IS_NULL(body->name))
Parrot_gc_mark_STRING_alive(interp, body->name);
if (!PMC_IS_NULL(body->methods))
Parrot_gc_mark_PMC_alive(interp, body->methods);
if (!PMC_IS_NULL(body->attributes))
Expand Down

0 comments on commit c0fbe4d

Please sign in to comment.