Make sure all buffer leaks are logged during the testsuite run

* Also fix a leak in a test
* Use the correct allocator for the dnsclient
Merge pull request #785 from eclipse/leak

Detect leaks during running the testsuite