diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2016-01-04 00:58:57 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2016-01-04 00:58:57 +0100 |
commit | bc7e83137ed2a14957e1b3feb5de658f8505ed57 (patch) | |
tree | ac62e430509f2a1532b72982916a41c3410e656a | |
parent | 8c06ec3276ff10f8b970a83467e0b3c4e28f4f5f (diff) | |
download | liberty-bc7e83137ed2a14957e1b3feb5de658f8505ed57.tar.gz liberty-bc7e83137ed2a14957e1b3feb5de658f8505ed57.tar.xz liberty-bc7e83137ed2a14957e1b3feb5de658f8505ed57.zip |
Fix usage of freeaddrinfo() in connector
-rw-r--r-- | liberty.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); } |