Re: [dpdk-dev] [PATCH] eal: fix leak in hotplug add on parse error

2017-08-03 Thread Thomas Monjalon
03/08/2017 14:34, Gaetan Rivet: > If rte_eal_devargs_parse fails, the rte_devargs has not yet been inserted > in the global list. When jumping to err_devarg, the removal fails and it > is not properly freed. > > Free the allocated rte_devargs if its removal failed. > > Coverity issue: 158658 > Fi

[dpdk-dev] [PATCH] eal: fix leak in hotplug add on parse error

2017-08-03 Thread Gaetan Rivet
If rte_eal_devargs_parse fails, the rte_devargs has not yet been inserted in the global list. When jumping to err_devarg, the removal fails and it is not properly freed. Free the allocated rte_devargs if its removal failed. Coverity issue: 158658 Fixes: 7e8b26650146 ("eal: fix hotplug add / remov