From 6aea0aee580aa099925e0c5faa24ffc5560d93b6 Mon Sep 17 00:00:00 2001 From: danghvu Date: Mon, 3 Oct 2016 14:21:47 -0500 Subject: [PATCH] memleak: Add back object release for uc->cpu --- uc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/uc.c b/uc.c index c3cd6658..4640e5c6 100644 --- a/uc.c +++ b/uc.c @@ -305,6 +305,7 @@ uc_err uc_close(uc_engine *uc) object_unref(uc, OBJECT(uc->machine_state->accelerator)); object_unref(uc, OBJECT(uc->machine_state)); + object_unref(uc, OBJECT(uc->cpu)); object_unref(uc, OBJECT(&uc->io_mem_notdirty)); object_unref(uc, OBJECT(&uc->io_mem_unassigned)); object_unref(uc, OBJECT(&uc->io_mem_rom));