Skip to content

Fix valgrind reported leak#77

Merged
jk-ozlabs merged 4 commits intomainfrom
pr/leaks
May 30, 2025
Merged

Fix valgrind reported leak#77
jk-ozlabs merged 4 commits intomainfrom
pr/leaks

Conversation

@mkj
Copy link
Copy Markdown
Member

@mkj mkj commented May 30, 2025

These changes should have no effect on program execution, just make it easier to see leaks in valgrind

Comment thread src/mctpd.c Outdated
mkj added 3 commits May 30, 2025 11:52
Previously the sd_bus and associated objects were not freed on exit, so
valgrind would report leaks. This doesn't matter itself, but makes it
difficult to detect real leaks.

Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
This doesn't change program behaviour, but avoids a noisy warning from
valgrind.

Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
This may not be possible (hasn't been encountered), but check in case.

Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
@jk-ozlabs jk-ozlabs merged commit ee23fcf into main May 30, 2025
2 checks passed
@jk-ozlabs jk-ozlabs deleted the pr/leaks branch June 3, 2025 06:16
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