client: Fix another memory leak in an error path
authorBart Van Assche <bvanassche@acm.org>
Sat, 30 May 2020 22:09:00 +0000 (15:09 -0700)
committerBart Van Assche <bvanassche@acm.org>
Tue, 9 Jun 2020 14:11:54 +0000 (07:11 -0700)
commit99dd44ec3be5e1e17dbff5ce52a1abe80be46c97
tree26b9347c36eb01fa4d73783fa7e1b1ae970a2e7f
parentbfb81533885f0c2e23f8c1ba5cc1e85de49efa8e
client: Fix another memory leak in an error path

Duplicate the hostname after if (...) goto err instead of before that check.
This was found by inspecting get_new_client() callers. It is not clear to me
why Coverity did not complain about this function.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
client.c