-
Notifications
You must be signed in to change notification settings - Fork 428
Fix a few memory leaks at shutdown. #156
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
static char* get_inet_address(struct sockaddr_storage& addr, char* dst, int len)Might be a little nicer. But I'm not particularly concerned.
|
Should we turn those "to run with valgrind" instructions into a Makefile target (make vg_run, make vg_test?). |
To run valgrind:
# make sipp without optimization
make CFLAGS="-g -O0" CXXFLAGS="-g -O0"
# run sipp with valgrind
valgrind --partial-loads-ok=yes --show-leak-kinds=all \
--leak-check=full \
sipp SIPP_ARGUMENTS | cat
# (the extra cat disables curses, which can show distracting leaks)
See also the new regression test in regress/github-#0156.
To run valgrind:
# make sipp without optimization
make CFLAGS="-g -O0" CXXFLAGS="-g -O0"
# run sipp with valgrind
valgrind --partial-loads-ok=yes --show-leak-kinds=all \
--leak-check=full \
sipp SIPP_ARGUMENTS | cat
# (the extra cat disables curses, which can show distracting leaks)
See also the new regression test in regress/github-#0156.
To run valgrind:
# make sipp without optimization
make CFLAGS="-g -O0" CXXFLAGS="-g -O0"
# run sipp with valgrind
valgrind --partial-loads-ok=yes --show-leak-kinds=all \
--leak-check=full \
sipp SIPP_ARGUMENTS | cat
# (the extra cat disables curses, which can show distracting leaks)
See also the new regression test in regress/github-#0156.
I added a regression test instead. |
Will need to find a way to setup the environment on my machine to avoid the need of submitting one pull request everytime to check...
To run valgrind: