Fix addrinfo leak in test_client.c

The addrinfo we got from getaddrinfo() was never freed.
76 jobs for !4629 with 2444-call-freeaddrinfo-in-test_client in 22 minutes and 54 seconds (queued for 8 seconds)
detached
Status Job ID Name Coverage
  Autoconf
passed #1443636
linux amd64
autoreconf

00:00:17

 
  Precheck
passed #1443638
linux amd64
clang-format

00:00:18

passed #1443639
linux amd64
coccinelle

00:03:57

passed #1443640
linux amd64
danger

00:00:14

passed #1443637
linux amd64
misc

00:00:19

passed #1443641
linux amd64
tarball-create

00:01:31

 
  Build
passed #1443654
linux amd64
clang:asan

00:01:46

passed #1443658
linux amd64
clang:buster:amd64

00:01:00

passed #1443661
amd64 libvirt
clang:freebsd11:amd64

00:01:11

passed #1443662
amd64 libvirt
clang:freebsd12:amd64

00:01:08

passed #1443663
amd64 libvirt
clang:openbsd:amd64

00:02:10

passed #1443656
linux amd64
clang:tsan

00:01:12

passed #1443642
linux amd64
gcc:alpine3.12:amd64

00:00:51

passed #1443653
linux amd64
gcc:asan

00:01:37

passed #1443646
linux amd64
gcc:buster:amd64

00:00:44

passed #1443643
linux amd64
gcc:centos7:amd64

00:00:49

passed #1443644
linux amd64
gcc:centos8:amd64

00:00:53

passed #1443652
linux amd64
gcc:focal:amd64

00:00:49

passed #1443657
linux amd64
gcc:mutexatomics

00:00:51

passed #1443648
linux amd64
gcc:out-of-tree

00:00:57

passed #1443647
linux amd64
gcc:sid:amd64

00:01:03

passed #1443649
linux i386
gcc:sid:i386

00:00:49

passed #1443659
linux amd64
gcc:softhsm2.4

00:00:53

passed #1443660
linux amd64
gcc:softhsm2.6

00:00:55

passed #1443645
linux amd64
gcc:stretch:amd64

00:00:58

passed #1443655
linux amd64
gcc:tsan

00:00:55

passed #1443650
linux amd64
gcc:tumbleweed:amd64

00:00:46

passed #1443651
linux amd64
gcc:xenial:amd64

00:00:55

passed #1443664
amd64 windows
msvc:windows:amd64

00:00:49

 
  Unit
passed #1443676
linux amd64
unit:clang:asan

00:01:24

passed #1443680
linux amd64
unit:clang:buster:amd64

00:01:03

passed #1443683
amd64 libvirt
unit:clang:freebsd11:amd64

00:01:25

passed #1443684
amd64 libvirt
unit:clang:freebsd12:amd64

00:01:33

passed #1443685
amd64 libvirt
unit:clang:openbsd:amd64

00:03:07

passed #1443678
linux amd64
unit:clang:tsan

00:03:22

passed #1443665
linux amd64
unit:gcc:alpine3.12:amd64

00:01:08

passed #1443675
linux amd64
unit:gcc:asan

00:01:30

passed #1443669
linux amd64
unit:gcc:buster:amd64

00:02:08

passed #1443666
linux amd64
unit:gcc:centos7:amd64

00:01:12

passed #1443667
linux amd64
unit:gcc:centos8:amd64

00:01:09

passed #1443674
linux amd64
unit:gcc:focal:amd64

00:01:04

passed #1443679
linux amd64
unit:gcc:mutexatomics

00:01:09

passed #1443670
linux amd64
unit:gcc:sid:amd64

00:01:08

passed #1443671
linux i386
unit:gcc:sid:i386

00:01:20

passed #1443681
linux amd64
unit:gcc:softhsm2.4

00:01:06

passed #1443682
linux amd64
unit:gcc:softhsm2.6

00:01:04

passed #1443668
linux amd64
unit:gcc:stretch:amd64

00:01:07

passed #1443677
linux amd64
unit:gcc:tsan

00:04:08

passed #1443672
linux amd64
unit:gcc:tumbleweed:amd64

00:01:03

passed #1443673
linux amd64
unit:gcc:xenial:amd64

00:01:08

 
  System
passed #1443697
linux amd64
system:clang:asan

00:13:40

failed #1443701
linux amd64
system:clang:buster:amd64

00:11:58

failed #1443704
amd64 libvirt
system:clang:freebsd11:amd64

00:12:20

passed #1443705
amd64 libvirt
system:clang:freebsd12:amd64

00:12:00

passed #1443699
linux amd64
system:clang:tsan

00:15:22

failed #1443686
linux amd64
system:gcc:alpine3.12:amd64

00:12:55

passed #1443696
linux amd64
system:gcc:asan

00:14:08

passed #1443690
linux amd64
system:gcc:buster:amd64

00:13:15

passed #1443687
linux amd64
system:gcc:centos7:amd64

00:12:23

passed #1443688
linux amd64
system:gcc:centos8:amd64

00:12:37

passed #1443695
linux amd64
system:gcc:focal:amd64

00:12:29

passed #1443700
linux amd64
system:gcc:mutexatomics

00:11:59

passed #1443691
linux amd64
system:gcc:sid:amd64

00:12:17

passed #1443692
linux i386
system:gcc:sid:i386

00:12:44

passed #1443702
linux amd64
system:gcc:softhsm2.4

00:11:59

failed #1443703
linux amd64
system:gcc:softhsm2.6

00:12:26

passed #1443689
linux amd64
system:gcc:stretch:amd64

00:11:23

passed #1443698
linux amd64
system:gcc:tsan

00:15:51

passed #1443693
linux amd64
system:gcc:tumbleweed:amd64

00:12:35

passed #1443694
linux amd64
system:gcc:xenial:amd64

00:11:32

 
  Docs
passed #1443706
linux amd64
docs

00:00:42

 
  Postcheck
passed #1443710
linux amd64
cppcheck

00:00:41

passed #1443707
linux amd64
flake8

00:00:18

passed #1443711
linux amd64
gcov

00:00:32

77.0%
passed #1443708
linux amd64
pylint

00:00:21

passed #1443709
linux amd64
scan-build

00:03:48

 
Name Stage Failure
failed
system:gcc:softhsm2.6 System
FAIL pkcs11 (exit status: 1)

$ test -n "${OUT_OF_TREE_WORKSPACE}" && mv "${OUT_OF_TREE_WORKSPACE}" "${CI_PROJECT_DIR}"
Uploading artifacts for failed job
Uploading artifacts...
untracked: found 1487 files

Uploading artifacts as "archive" to coordinator... ok
id=1443703 responseStatus=201 Created token=D5_scLDd
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
system:clang:buster:amd64 System
FAIL inline (exit status: 1)

$ test -n "${OUT_OF_TREE_WORKSPACE}" && mv "${OUT_OF_TREE_WORKSPACE}" "${CI_PROJECT_DIR}"
Uploading artifacts for failed job
Uploading artifacts...
untracked: found 2011 files

Uploading artifacts as "archive" to coordinator... ok
id=1443701 responseStatus=201 Created token=3NB7soH4
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
system:gcc:alpine3.12:amd64 System
FAIL inline (exit status: 1)

$ test -n "${OUT_OF_TREE_WORKSPACE}" && mv "${OUT_OF_TREE_WORKSPACE}" "${CI_PROJECT_DIR}"
Uploading artifacts for failed job
Uploading artifacts...
untracked: found 2017 files

Uploading artifacts as "archive" to coordinator... ok
id=1443686 responseStatus=201 Created token=KbVEFh7b
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
system:clang:freebsd11:amd64 System

$ test -n "${OUT_OF_TREE_WORKSPACE}" && mv "${OUT_OF_TREE_WORKSPACE}" "${CI_PROJECT_DIR}"
Uploading artifacts for failed job
Uploading artifacts...
Runtime platform
arch=amd64 os=freebsd pid=66616 revision=943fc252 version=13.7.0
untracked: found 1530 files

Uploading artifacts as "archive" to coordinator... ok
id=1443704 responseStatus=201 Created token=ZuKJ-EAa
Cleaning up file based variables
ERROR: Job failed: exit status 1