-
Notifications
You must be signed in to change notification settings - Fork 565
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
It seems to have some memory leak in vs2013 #119
Comments
I have recently fixed a leak in If it is different leak, what is your configuration? How do you use log4cplus? How do I reproduce the leak? How big is the leak? Please provide some details. |
The code is here: #include "log4cplus/initializer.h"
int main(int argc, char *argv[])
{
_CrtSetDbgFlag(_CrtSetDbgFlag(_CRTDBG_REPORT_FLAG) | _CRTDBG_LEAK_CHECK_DF);
log4cplus::Initializer test_initializer;
return 0;
} I use log4cplus-master, edit the *.vcxproj file, replace "v140" to "v120" to compile it in my vs2013. It reports memory leaks. It's possibly cause by stringhel Here is the output:
|
Leaks like this have been reported few times already. Unless this leak actually accumulates during longer run time, I do not think it is an issue. I think the problem is that the leaks reporting routine runs before the memory is actually deallocated. There is some thread-local storage that gets freed only at the very end of threads execution or process execution. |
ok, thank you very much. |
I use log4cplus-master in my project, and use
to check whether it exists memory leak.
The text was updated successfully, but these errors were encountered: