mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 02:53:42 +00:00
memleak: missing from refactoring
This commit is contained in:
parent
6b9f17f2f7
commit
117a318188
2 changed files with 3 additions and 2 deletions
|
@ -52,6 +52,7 @@ static void release_common(void *t)
|
||||||
phys_mem_clean(s->uc);
|
phys_mem_clean(s->uc);
|
||||||
address_space_destroy(&(s->uc->as));
|
address_space_destroy(&(s->uc->as));
|
||||||
memory_free(s->uc);
|
memory_free(s->uc);
|
||||||
|
tb_cleanup(s->uc);
|
||||||
|
|
||||||
#if TCG_TARGET_REG_BITS == 32
|
#if TCG_TARGET_REG_BITS == 32
|
||||||
for(i = 0; i < s->nb_globals; i++) {
|
for(i = 0; i < s->nb_globals; i++) {
|
||||||
|
|
4
uc.c
4
uc.c
|
@ -338,7 +338,7 @@ uc_err uc_close(uc_engine *uc)
|
||||||
}
|
}
|
||||||
|
|
||||||
g_hash_table_foreach(uc->type_table, free_table, uc);
|
g_hash_table_foreach(uc->type_table, free_table, uc);
|
||||||
g_hash_table_unref(uc->type_table);
|
g_hash_table_destroy(uc->type_table);
|
||||||
|
|
||||||
for (i = 0; i < DIRTY_MEMORY_NUM; i++) {
|
for (i = 0; i < DIRTY_MEMORY_NUM; i++) {
|
||||||
free(uc->ram_list.dirty_memory[i]);
|
free(uc->ram_list.dirty_memory[i]);
|
||||||
|
@ -1153,7 +1153,7 @@ uc_err uc_query(uc_engine *uc, uc_query_type type, size_t *result)
|
||||||
*result = uc->target_page_size;
|
*result = uc->target_page_size;
|
||||||
return UC_ERR_OK;
|
return UC_ERR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch(uc->arch) {
|
switch(uc->arch) {
|
||||||
case UC_ARCH_ARM:
|
case UC_ARCH_ARM:
|
||||||
return uc->query(uc, type, result);
|
return uc->query(uc, type, result);
|
||||||
|
|
Loading…
Reference in a new issue