lang: codegen: fix free of mie_ctx that isn't allocated by ivy_codegen
This commit is contained in:
@@ -264,10 +264,6 @@ void ivy_codegen_destroy(struct ivy_codegen *gen)
|
||||
mie_builder_destroy(gen->c_builder);
|
||||
}
|
||||
|
||||
if (gen->c_ctx) {
|
||||
mie_ctx_destroy(gen->c_ctx);
|
||||
}
|
||||
|
||||
free(gen);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user