Fix usage of freeaddrinfo() in connector
This commit is contained in:
parent
8c06ec3276
commit
bc7e83137e
@ -3953,10 +3953,11 @@ connector_target_destroy (struct connector_target *self)
|
|||||||
async_cancel (self->getaddrinfo_event);
|
async_cancel (self->getaddrinfo_event);
|
||||||
if (self->getaddrinfo_error)
|
if (self->getaddrinfo_error)
|
||||||
error_free (self->getaddrinfo_error);
|
error_free (self->getaddrinfo_error);
|
||||||
|
if (self->results)
|
||||||
|
freeaddrinfo (self->results);
|
||||||
|
|
||||||
free (self->hostname);
|
free (self->hostname);
|
||||||
free (self->service);
|
free (self->service);
|
||||||
freeaddrinfo (self->results);
|
|
||||||
free (self);
|
free (self);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user