Flush tb in uc_close
This commit is contained in:
3
uc.c
3
uc.c
@@ -504,6 +504,9 @@ uc_err uc_close(uc_engine *uc)
|
|||||||
return UC_ERR_OK;
|
return UC_ERR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Flush all translation buffers or we leak memory allocated by MMU
|
||||||
|
uc->tb_flush(uc);
|
||||||
|
|
||||||
// Cleanup internally.
|
// Cleanup internally.
|
||||||
if (uc->release) {
|
if (uc->release) {
|
||||||
uc->release(uc->tcg_ctx);
|
uc->release(uc->tcg_ctx);
|
||||||
|
|||||||
Reference in New Issue
Block a user