Add support for freeing code emitter objects at the end of compilation.
diff --git a/py/compile.c b/py/compile.c
index 7e77832..e8a5197 100644
--- a/py/compile.c
+++ b/py/compile.c
@@ -3155,6 +3155,9 @@
     }
 
     bool had_error = comp->had_error;
+    if (comp->emit_method_table->free != NULL) {
+        comp->emit_method_table->free(comp->emit);
+    }
     m_del_obj(compiler_t, comp);
     uint unique_code_id = module_scope->unique_code_id;
     for (scope_t *s = module_scope; s;) {