Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix https://github.com/unicorn-engine/unicorn/issues/1586 #1587

Merged
merged 2 commits into from
Apr 11, 2022
Merged

Fix https://github.com/unicorn-engine/unicorn/issues/1586 #1587

merged 2 commits into from
Apr 11, 2022

Conversation

liyansong2018
Copy link
Contributor

If uc->init_arch == NULL, uc need to be retruned because it already points to heap space. Of course, we can also directly free the corresponding memory space.

if (uc->init_arch == NULL) {
    free(uc);
    return UC_ERR_ARCH;
}

@wtdcode wtdcode merged commit 469fc4c into unicorn-engine:dev Apr 11, 2022
@wtdcode
Copy link
Member

wtdcode commented Apr 11, 2022

Merged, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants