From 5d8d251085d81cb1b6e35f356dcfdd6e0e1f6078 Mon Sep 17 00:00:00 2001 From: Chris Eagle Date: Wed, 26 Aug 2015 08:23:36 -0700 Subject: [PATCH] Free uc->mapped_blocks in uc_close --- uc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/uc.c b/uc.c index 33361f51..d2e2a21d 100755 --- a/uc.c +++ b/uc.c @@ -283,6 +283,8 @@ uc_err uc_close(uch *handle) uc->root->free(uc->root); free(uc->hook_callbacks); + + free(uc->memory_map); // finally, free uc itself. memset(uc, 0, sizeof(*uc));