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

Feature: Ignore defined functions from leak detection #21

Merged
merged 8 commits into from
Jan 3, 2023

Conversation

cyrus-jackson
Copy link

@cyrus-jackson cyrus-jackson commented Dec 6, 2022

Adds a new feature to ignore the defined functions in vld.ini from checking for memory leak detection.

Currently vld does not have a direct way to assess static string allocations, even though the destruction gets called at exit vld reports it as a leak. With this feature, the function name (after manual introspection, ofcourse) can be added to IgnoreFunctionsList in vld.ini and the stack containing the function will not be reported for leaks.

This is especially useful in cases where there are false positives in third party libraries and with this it can be ignored.

@cyrus-jackson cyrus-jackson changed the title Feature: Ignore Functions Feature: Ignore defined functions from leak detection Dec 6, 2022
vld.ini Outdated Show resolved Hide resolved
vld.ini Show resolved Hide resolved
src/vld.cpp Outdated Show resolved Hide resolved
src/vldint.h Outdated Show resolved Hide resolved
Copy link
Member

@dcristoloveanu dcristoloveanu left a comment

Choose a reason for hiding this comment

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

:shipit:

@cyrus-jackson cyrus-jackson merged commit 23770aa into master Jan 3, 2023
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