Fix usage of freeaddrinfo() in connector

This commit is contained in:
Přemysl Eric Janouch 2016-01-04 00:58:57 +01:00
parent 8c06ec3276
commit bc7e83137e
1 changed files with 2 additions and 1 deletions

View File

@ -3953,10 +3953,11 @@ connector_target_destroy (struct connector_target *self)
async_cancel (self->getaddrinfo_event);
if (self->getaddrinfo_error)
error_free (self->getaddrinfo_error);
if (self->results)
freeaddrinfo (self->results);
free (self->hostname);
free (self->service);
freeaddrinfo (self->results);
free (self);
}