-
Notifications
You must be signed in to change notification settings - Fork 462
Valgrind reports "possibly lost" when using static Regex
#1205
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
Comments
Yeah, so? You're sticking the |
Sorry, I missclicked and submitted without the full text. I've edited the description.
My question is then: does these |
To give some context, I'm facing this possible leak using About the |
Regex
Regex
Another maybe useful information, the
|
Ok, I've understood that it felt in the case "doing unusual things with pointers", sorry for the bother. Seem's I've to add a |
My prior is that valgrind reports false positives, and that its behavior at least partially depends on the allocator being used. So I need more evidence. Otherwise, I don't really see anything wrong here. Like yes... you have a leak because you aren't running a regex's destructor. And yes, it changes with different patterns because different patterns require different amounts of heap... I'm not sure why you would expect anything different. |
Also, |
What version of regex are you using?
regex = "1.10.5"
Describe the bug at a high level.
Valgrind reports "possibly lost" when using static
Regex
.What are the steps to reproduce the behavior?
What is the actual behavior?
Here is valgrind command and report:
What is the expected behavior?
I expect to have
still reachable
blocks, but I don't know the reason ofpossibly lost
.The text was updated successfully, but these errors were encountered: