connectivecpp / chops-net-ip

Chops Net IP ("C"onnective "H"andcrafted "Op"enwork "S"oftware), a tasty C++ library that makes asynchronous IP network coding fun!
Boost Software License 1.0
7 stars 3 forks source link

First demo program (local_chat_demo.cpp) leaks memory like a sieve #14

Closed tgill880 closed 5 years ago

tgill880 commented 5 years ago

Describe the bug When the program successfully exits, there are multiple memory allocations that have not been deallocated.

To Reproduce g++ -std=c++17 -g3 -fsanitize=address (etc) OR valgrind --tool=memcheck --leak-check=yes ./a.out

Expected behavior No memory leaks should be present

Desktop:

cliffg-softwarelibre commented 5 years ago

As an added data point, I'm going to add the sanitizer flags to the CMakefile configuration (conditionally if I can, unconditionally if needed for now), build and run all of the unit tests. Previously, using the Networking TS lib, all of the unit tests ran under the g++ sanitizer without any problems.

tgill880 commented 5 years ago

Fixed, but needs to be handled by the chops-net-ip library.