diff --git a/uc.c b/uc.c index db10af89..5f1d2f20 100644 --- a/uc.c +++ b/uc.c @@ -388,6 +388,7 @@ uc_err uc_open(uc_arch arch, uc_mode mode, uc_engine **result) } if (uc->init_arch == NULL) { + free(uc); return UC_ERR_ARCH; }