Skip to content

fix memory leak in constant pressure burn - #1109

Merged
Debraheem merged 1 commit into
MESAHub:mainfrom
zingale:fix_memory_leak
Nov 11, 2026
Merged

Debraheem merged 1 commit into
MESAHub:mainfrom
zingale:fix_memory_leak

Conversation

@zingale

@zingale zingale commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator

Running the test_one_zone_burn_const_P test under valgrind gives:

==735781== 
==735781== HEAP SUMMARY:
==735781==     in use at exit: 549,396,626 bytes in 92,326 blocks
==735781==   total heap usage: 2,164,261 allocs, 2,071,935 frees, 1,228,086,966 bytes allocated
==735781== 
==735781== LEAK SUMMARY:
==735781==    definitely lost: 176 bytes in 1 blocks
==735781==    indirectly lost: 0 bytes in 0 blocks
==735781==      possibly lost: 2,240 bytes in 7 blocks
==735781==    still reachable: 549,394,210 bytes in 92,318 blocks
==735781==         suppressed: 0 bytes in 0 blocks
==735781== Rerun with --leak-check=full to see details of leaked memory

This PR fixes the "definitely lost" leak.

@Debraheem Debraheem added bug Something isn't working rates-net Rates and net modules labels Nov 11, 2026
@Debraheem
Debraheem merged commit 07e1e6a into MESAHub:main Nov 11, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working rates-net Rates and net modules

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants