Spdk/lib/env_dpdk
Darek Stojaczyk 6a365c0811 env/dpdk: fix potential memleak on init failure
When we were trying to push a newly allocated string
into the arg array and the array realloc() failed,
the string we were about to insert was leaked.

Change-Id: I31ccd5a09956d5407b2938792ecc9b482b2419d1
Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/c/445149 (master)
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/447580
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2019-03-12 05:15:31 +00:00
..
env_internal.h env: move VALUE_2MB defines into a new internal header 2019-01-13 00:47:26 +00:00
env.c OCF: use rte_pause in wait loop 2019-01-28 19:24:13 +00:00
env.mk ipsec_mb: use EXTRA_CFLAGS to point DPDK to intel-ipsec-mb submodule 2019-01-18 17:21:02 +00:00
init.c env/dpdk: fix potential memleak on init failure 2019-03-12 05:15:31 +00:00
Makefile env: add pci_virtio.c 2017-09-26 14:28:24 -04:00
memory.c env: move VALUE_2MB defines into a new internal header 2019-01-13 00:47:26 +00:00
pci_ioat.c pci: remove ioat-specific attach functions 2018-12-07 17:24:19 +00:00
pci_nvme.c pci: remove nvme-specific attach functions 2018-12-07 17:24:19 +00:00
pci_virtio.c pci: remove virtio-specific attach functions 2018-12-07 17:24:19 +00:00
pci.c pci: rescan the bus on device enumeration 2019-01-09 08:23:42 +00:00
threads.c env: drop DPDK 16.07 support 2018-11-30 19:59:34 +00:00
vtophys.c env: move VALUE_2MB defines into a new internal header 2019-01-13 00:47:26 +00:00