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

False positive for std::string initialized in header #62

Open
mattdurak opened this issue Jan 31, 2019 · 0 comments · May be fixed by #63
Open

False positive for std::string initialized in header #62

mattdurak opened this issue Jan 31, 2019 · 0 comments · May be fixed by #63

Comments

@mattdurak
Copy link

Given a sample header as follows:

#pragma once

#include <string>

namespace my_string
{
    const std::string the_string("foobar");
}

VLD is detecting a leak of the allocation of the string.

It appears that the helper CallStack::isCrtStartupFunction needs to also filter out the function initterm (currently it only checks for initterm_e.

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 a pull request may close this issue.

1 participant