telemetry: close socket on connection failure
authorCiara Power <ciara.power@intel.com>
Tue, 12 May 2020 15:29:00 +0000 (16:29 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 19 May 2020 13:05:56 +0000 (15:05 +0200)
commit6aa1aa0ebc48c14dd90648e2dbb726f0f09c4674
treec362cc6af066a3baea1fe311df61050263bf4457
parentbd3c89cb1ab38ba04033f3ae8aa08823d4a43f88
telemetry: close socket on connection failure

The socket fd is now being closed when the connection fails.

Coverity issue: 358444
Fixes: b80fe1805eee ("telemetry: introduce backward compatibility")

Signed-off-by: Ciara Power <ciara.power@intel.com>
Acked-by: Kevin Laatz <kevin.laatz@intel.com>
lib/librte_telemetry/telemetry_legacy.c