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

Memory leak and build fixes #16

Closed
wants to merge 2 commits into from
Closed

Conversation

minipli-oss
Copy link
Contributor

The addition of a unit test for pspax in 6641785 made the CI discover its memory leaks. Fix them.

Also add a commit lowering the minimal meson version required to build. Debian is always a few versions behind :/

Every cap_t needs to be free'd by calling cap_free() which does a NULL
pointer test itself so callers don't need to.

Signed-off-by: Mathias Krause <minipli@grsecurity.net>
Debian bullseye ships with meson 0.56.2 which is too old to understand
replace().

Work around that with split() and string concatenation.

Signed-off-by: Mathias Krause <minipli@grsecurity.net>
Copy link
Member

@thesamesam thesamesam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! And checked cap_free vs cap_to_text semantics.

@gentoo-bot gentoo-bot closed this in 101ddcc Aug 9, 2024
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