Azure / vld

Visual Leak Detector for Visual C++ 2008-2015
https://kinddragon.github.io/vld/
GNU Lesser General Public License v2.1
41 stars 25 forks source link

Feature: Ignore defined functions from leak detection #21

Closed cyrus-jackson closed 1 year ago

cyrus-jackson commented 1 year ago

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.