-
Notifications
You must be signed in to change notification settings - Fork 51
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
Leaking memory on live capture #5
Comments
Do you locate the leak? |
I also encountered |
I'm not so expert in C (not to say I'm bad) I'll give it a shot but I'm not too confident I'll get it |
Don't worry about programming. Should you get any traces trigger that, you can send me for further check. : ) |
Seems part of it is in http_request_free where not everthing is freed properly
This is the biggest leak. I found that not all malloc in http_new are freed and when I looked in the code it seems that it would be missing flow_free calls but these are much less obvious to find. Here is what valgrind has to say about it :
Let me know |
Yeah I think you get the point. I will walk through and check the memory free tomorrow. |
http message leak fixed (f71d4ff) and check other malloc and free over. If other errors found, let me know. Thanks you : ) |
Much much better with that commit. Still seems that the flow leak is there. There is memory not freed with mallocs from http_new Here is the full valgrind report : http://pastebin.com/WzWk8m8M I broke 'Ctrl-C' the process to stop it if it makes any difference but the process was consuming more and more memory before I stopped it |
Any progress on that ? |
Sry for late response. I was away for my vacation last days. I will check your findings and make it correct. Thanks! |
The valgrind report link is outdated. Could you give me a new one? I think I can locate the problem quickly with some clear clue. |
New pastebin link : http://pastebin.com/qdTQ91cV |
What do you require me to provide ?
The text was updated successfully, but these errors were encountered: