From b6dd516977e3f2545478e69cfa7b52e2665bd8c5 Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Wed, 26 Aug 2015 23:41:30 +0800 Subject: [PATCH] fix a bug on releasing mapped_blocks in uc_close() --- uc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uc.c b/uc.c index d2e2a21d..a7533196 100755 --- a/uc.c +++ b/uc.c @@ -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));