aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--liberty.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/liberty.c b/liberty.c
index 78371f5..fece828 100644
--- a/liberty.c
+++ b/liberty.c
@@ -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);
}