fix a bug on releasing mapped_blocks in uc_close()

This commit is contained in:
Nguyen Anh Quynh 2015-08-26 23:41:30 +08:00
parent 9e929ca2f3
commit b6dd516977

2
uc.c
View file

@ -284,7 +284,7 @@ uc_err uc_close(uch *handle)
free(uc->hook_callbacks);
free(uc->memory_map);
free(uc->mapped_blocks);
// finally, free uc itself.
memset(uc, 0, sizeof(*uc));