client: Fix a memory leak in an error path
authorBart Van Assche <bvanassche@acm.org>
Sat, 30 May 2020 21:58:34 +0000 (14:58 -0700)
committerBart Van Assche <bvanassche@acm.org>
Tue, 9 Jun 2020 14:11:54 +0000 (07:11 -0700)
commitbfb81533885f0c2e23f8c1ba5cc1e85de49efa8e
tree6931cd56f5a38307b611a0927b09a53014038429
parentc9beb194ef608dc49dd2f7537b90951f3c8b432d
client: Fix a memory leak in an error path

This patch fixes the following Coverity complaint:

CID 300985 (#1 of 1): Resource leak (RESOURCE_LEAK)
leaked_storage: Variable client going out of scope leaks the storage it points to.

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