Fix memory leaks found by valgrind.

This commit is contained in:
Guus Sliepen 2012-10-09 16:27:28 +02:00
parent 72642b40b3
commit d1ec010660
6 changed files with 20 additions and 12 deletions

View file

@ -571,6 +571,9 @@ static void free_outgoing(outgoing_t *outgoing) {
if(outgoing->ai)
freeaddrinfo(outgoing->ai);
if(outgoing->config_tree)
exit_configuration(&outgoing->config_tree);
if(outgoing->name)
free(outgoing->name);