numam-dpdk/lib/librte_metrics
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: c5b7197f66 ("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
..
meson.build metrics: fix header installation with meson 2020-07-17 16:00:30 +02:00
rte_metrics_telemetry.c metrics: fix memory leak on allocation failure 2020-11-03 22:45:24 +01:00
rte_metrics_telemetry.h build: replace use of old build macros 2020-10-19 22:15:44 +02:00
rte_metrics.c metrics: fix library cleanup 2020-05-19 14:05:21 +02:00
rte_metrics.h telemetry: invert dependency on metrics library 2020-05-10 23:52:00 +02:00
version.map build: remove library name from version map file name 2020-10-19 22:13:59 +02:00