Skip to content

Commit

Permalink
[gc] Don't initialize string GC twice
Browse files Browse the repository at this point in the history
Fixes a memory leak when creating a second interpreter.
  • Loading branch information
nwellnhof committed Dec 22, 2010
1 parent 783a3d9 commit db189b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gc/gc_ms2.c
Expand Up @@ -641,10 +641,11 @@ Parrot_gc_ms2_init(PARROT_INTERP)
self->fixed_size_allocator = Parrot_gc_fixed_allocator_new(interp);

self->gc_threshold = Parrot_sysmem_amount(interp) / 8;

Parrot_gc_str_initialize(interp, &self->string_gc);
}

interp->gc_sys->gc_private = self;
Parrot_gc_str_initialize(interp, &self->string_gc);
}


Expand Down

0 comments on commit db189b2

Please sign in to comment.