Ciara Power a5c79ad0f0 metrics: fix memory leak on allocation failure
If an error occurred when allocating memory for metrics or names,
the function returned without freeing allocated memory. This is now
fixed to avoid the resource leak in the case that either metrics or
names had been successfully allocated memory.

Coverity issue: 362053
Fixes: c5b7197f662e ("telemetry: move some functions to metrics library")
Cc: stable@dpdk.org

Reported-by: Gaurav Singh <gaurav1086@gmail.com>
Signed-off-by: Ciara Power <ciara.power@intel.com>
Acked-by: John McNamara <john.mcnamara@intel.com>
2020-11-03 22:45:24 +01:00
2020-04-17 23:34:08 +02:00
2020-11-03 22:45:02 +01:00
2020-11-03 21:01:02 +01:00
2020-11-03 22:45:02 +01:00
2020-10-31 16:13:10 +01:00
2020-02-22 21:05:22 +01:00
2016-11-13 15:25:12 +01:00
2020-09-30 21:52:54 +02:00
2020-08-12 11:32:16 +02:00
2020-09-07 23:51:57 +02:00
2018-01-04 22:41:38 +01:00
2020-10-20 16:38:46 +02:00

DPDK is a set of libraries and drivers for fast packet processing.
It supports many processor architectures and both FreeBSD and Linux.

The DPDK uses the Open Source BSD-3-Clause license for the core libraries
and drivers. The kernel components are GPL-2.0 licensed.

Please check the doc directory for release notes,
API documentation, and sample application information.

For questions and usage discussions, subscribe to: users@dpdk.org
Report bugs and issues to the development mailing list: dev@dpdk.org
Description
No description provided
Readme
Languages
C 99.1%
Meson 0.5%
Python 0.2%
Shell 0.1%