Skip to content

Commit

Permalink
Free object_ids hash when running full cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
niner committed Jan 2, 2021
1 parent df6b2e7 commit 3d2309f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/moar.c
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,8 @@ void MVM_vm_destroy_instance(MVMInstance *instance) {
* no 6model object pointers should be accessed. */
MVM_gc_global_destruction(instance->main_thread);

MVM_ptr_hash_demolish(instance->main_thread, &instance->object_ids);

/* Cleanup REPR registry */
uv_mutex_destroy(&instance->mutex_repr_registry);
MVM_index_hash_demolish(instance->main_thread, &instance->repr_hash);
Expand Down

0 comments on commit 3d2309f

Please sign in to comment.