numam-dpdk/lib
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
..
librte_acl build: remove library name from version map file name 2020-10-19 22:13:59 +02:00
librte_bbdev build: remove library name from version map file name 2020-10-19 22:13:59 +02:00
librte_bitratestats build: remove library name from version map file name 2020-10-19 22:13:59 +02:00
librte_bpf bpf: use helper to install headers 2020-10-22 14:15:19 +02:00
librte_cfgfile build: remove library name from version map file name 2020-10-19 22:13:59 +02:00
librte_cmdline build: remove library name from version map file name 2020-10-19 22:13:59 +02:00
librte_compressdev build: remove library name from version map file name 2020-10-19 22:13:59 +02:00
librte_cryptodev build: remove library name from version map file name 2020-10-19 22:13:59 +02:00
librte_distributor build: remove library name from version map file name 2020-10-19 22:13:59 +02:00
librte_eal eal: fix power intrinsics API description 2020-11-03 22:45:24 +01:00
librte_efd efd: fix tailq entry leak in error path 2020-10-22 22:07:15 +02:00
librte_ethdev ethdev: include mbuf registration in Tx timestamp API 2020-11-03 16:21:15 +01:00
librte_eventdev eventdev: remove software Rx timestamp 2020-11-03 15:28:26 +01:00
librte_fib fib6: add AVX512 lookup 2020-10-28 21:29:13 +01:00
librte_flow_classify build: remove library name from version map file name 2020-10-19 22:13:59 +02:00
librte_graph build: standardize component names and defines 2020-10-19 22:15:34 +02:00
librte_gro build: remove library name from version map file name 2020-10-19 22:13:59 +02:00
librte_gso gso: fix mbuf freeing responsibility 2020-11-03 22:45:02 +01:00
librte_hash hash: fix check of parameter 2020-10-29 16:45:17 +01:00
librte_ip_frag build: remove library name from version map file name 2020-10-19 22:13:59 +02:00
librte_ipsec build: remove library name from version map file name 2020-10-19 22:13:59 +02:00
librte_jobstats build: remove library name from version map file name 2020-10-19 22:13:59 +02:00
librte_kni mbuf: remove userdata field 2020-10-31 16:13:11 +01:00
librte_kvargs build: remove library name from version map file name 2020-10-19 22:13:59 +02:00
librte_latencystats latency: switch Rx timestamp to dynamic mbuf field 2020-11-03 16:21:15 +01:00
librte_lpm lpm: hide internal data 2020-10-24 19:08:06 +02:00
librte_mbuf mbuf: add Tx timestamp registration helper 2020-11-03 16:21:15 +01:00
librte_member build: remove library name from version map file name 2020-10-19 22:13:59 +02:00
librte_mempool build: remove library name from version map file name 2020-10-19 22:13:59 +02:00
librte_meter build: remove library name from version map file name 2020-10-19 22:13:59 +02:00
librte_metrics metrics: fix memory leak on allocation failure 2020-11-03 22:45:24 +01:00
librte_net build: remove library name from version map file name 2020-10-19 22:13:59 +02:00
librte_node node: switch IPv4 metadata to dynamic mbuf field 2020-10-31 16:13:10 +01:00
librte_pci build: remove library name from version map file name 2020-10-19 22:13:59 +02:00
librte_pdump build: remove library name from version map file name 2020-10-19 22:13:59 +02:00
librte_pipeline pipeline: increase SWX immediate operand size 2020-11-02 21:38:27 +01:00
librte_port build: replace use of old build macros 2020-10-19 22:15:44 +02:00
librte_power eal: rename lcore master and slave 2020-10-20 13:17:08 +02:00
librte_rawdev build: remove library name from version map file name 2020-10-19 22:13:59 +02:00
librte_rcu remove config prefix used with make 2020-10-23 19:25:21 +02:00
librte_regexdev regexdev: add out-of-order scan capability 2020-11-03 02:03:25 +01:00
librte_reorder reorder: switch sequence number to dynamic mbuf field 2020-10-31 22:14:30 +01:00
librte_rib build: remove library name from version map file name 2020-10-19 22:13:59 +02:00
librte_ring ring: add zero copy API 2020-10-29 14:13:31 +01:00
librte_sched build: remove library name from version map file name 2020-10-19 22:13:59 +02:00
librte_security security: switch metadata to dynamic mbuf field 2020-10-31 16:13:11 +01:00
librte_stack build: remove library name from version map file name 2020-10-19 22:13:59 +02:00
librte_table build: remove library name from version map file name 2020-10-19 22:13:59 +02:00
librte_telemetry build: remove library name from version map file name 2020-10-19 22:13:59 +02:00
librte_timer build: remove library name from version map file name 2020-10-19 22:13:59 +02:00
librte_vhost build: remove library name from version map file name 2020-10-19 22:13:59 +02:00
meson.build rcu: build on Windows 2020-10-24 08:54:03 +02:00