ndenev/mpssh — pull request #2 by dnaeon (2012-12-12 09:59:37+00:00)
Title: Fix memory leaks and a typo

Hi,

The submitted commits fix a memory leak before the program returns and one possible leak in host_new() due to an early exit(3).

Here's some info from valgrind as well about the leaks:

## Before

==19579== LEAK SUMMARY:
==19579== definitely lost: 32 bytes in 1 blocks
==19579== indirectly lost: 106 bytes in 8 blocks
==19579== possibly lost: 0 bytes in 0 blocks
==19579== still reachable: 50 bytes in 3 blocks
==19579== suppressed: 0 bytes in 0 blocks

## After

==19629== HEAP SUMMARY:
==19629== in use at exit: 0 bytes in 0 blocks
==19629== total heap usage: 87 allocs, 87 frees, 19,391 bytes allocated
==19629==
==19629== All heap blocks were freed -- no leaks are possible

P.S.: Nice tool, btw! You should submit a PR for adding it to the Ports Collection :)