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 Dec 31, 2020
1 parent b6bc010 commit b092770
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/moar.c
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 b092770

Please sign in to comment.