Skip to content

Commit

Permalink
Add missing snapshot collection cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Mar 18, 2016
1 parent fd54ad0 commit 15569ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/profiler/heapsnapshot.c
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,10 @@ static void destroy_heap_snapshot_collection(MVMThreadContext *tc) {
if (col->strings_free[i])
MVM_free(col->strings[i]);
MVM_free(col->strings);
MVM_free(col->strings_free);

/* XXX Free other pieces. */
MVM_free(col->types);
MVM_free(col->static_frames);

MVM_free(col);
tc->instance->heap_snapshots = NULL;
Expand Down

0 comments on commit 15569ad

Please sign in to comment.