Then you could run Valgrind with arguments similar to the following:
valgrind --leak-check=full --show-reachable=yes --suppressions=zeromq.
Here we can say that running code under Valgrind has severe impacts on the
performance and can introduce timeouts in some cases.
In this chapter, we had an introduction to sockets and we introduced two new
patterns, namely the publish-subscribe and pipeline pattern. We also discussed
how to solve a certain problem using the publish-subscribe pattern with the help
of a simple example. Then we had a small discussion on how to detect memory
leaks in our ZeroMQ applications by using Valgrind.