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 (small) memory leak #4

Merged
merged 1 commit into from
Jun 5, 2022
Merged

Conversation

llamaking136
Copy link
Contributor

@llamaking136 llamaking136 commented Apr 29, 2022

What's happening:

  • When the emulator cannot find the bootrom, the function init_boot_rom_vector returns when it forgot to deallocate the raw_target variable.

What I did:

  • Added a free right before the function init_boot_rom_vector returns when no bootrom is found.

Though the memory leak is minimal (26 bytes), I thought to quickly patch this before anything happens.

@llamaking136 llamaking136 changed the title Fixed (small) memory leak Fix (small) memory leak Apr 29, 2022
@Supercip971
Copy link
Owner

thanks !

@Supercip971 Supercip971 merged commit f8e7e85 into Supercip971:main Jun 5, 2022
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.

None yet

2 participants