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 a memory leak in the HW model. #1586

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

zhalvorsen
Copy link
Contributor

Previously, the drop didn't free anything because the compiler thought it was a zero-sized struct. This tells the compiler how much memory needs to be freed.

@zhalvorsen zhalvorsen force-pushed the zhalvorsen-memory-leak-in-smoke-test branch from 688e573 to 84331a8 Compare June 25, 2024 21:05
@zhalvorsen zhalvorsen marked this pull request as ready for review June 25, 2024 21:05
Previously, the `drop` didn't free anything because the compiler thought it was a zero-sized struct. This tells the compiler how much memory needs to be freed.
@jhand2 jhand2 force-pushed the zhalvorsen-memory-leak-in-smoke-test branch from 84331a8 to ecb701b Compare July 1, 2024 21:47
@jhand2 jhand2 enabled auto-merge (rebase) July 1, 2024 21:47
@jhand2 jhand2 merged commit 78d06a8 into main Jul 1, 2024
10 checks passed
@zhalvorsen zhalvorsen deleted the zhalvorsen-memory-leak-in-smoke-test branch July 3, 2024 17:52
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