network: Add missing freeaddrinfo on error path.
authorRyan McCabe <rmccabe@redhat.com>
Wed, 4 Dec 2019 15:33:55 +0000 (10:33 -0500)
committerRyan McCabe <rmccabe@redhat.com>
Wed, 4 Dec 2019 15:33:55 +0000 (10:33 -0500)
commitde407dd4e036f73e9bd4658af9d71f504fc11109
tree28493b024cf9a9ceaf099618f03eb146a7360282
parentf22e31f058941a4d3f72a98d4d24264c07afd080
network: Add missing freeaddrinfo on error path.

Add a missing freeaddrinfo on an error path to fix a memory leak
in the network code.

Changelog: network: Fix memory leak.
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
src/network.c