Merge pull request #1587 from liyansong2018/dev

Fix https://github.com/unicorn-engine/unicorn/issues/1586
This commit is contained in:
lazymio 2022-04-11 10:44:10 +02:00 committed by GitHub
commit 469fc4c35a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

1
uc.c
View File

@ -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;
}