service: fix possible mem leak on initialize
authorHarry van Haaren <harry.van.haaren@intel.com>
Wed, 24 Jan 2018 17:02:47 +0000 (17:02 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 25 Jan 2018 22:11:44 +0000 (23:11 +0100)
commitda9ac508c3b77c83c201dd01d7736ccf139d1767
treee51c5de81c7cc5f1017c7bb378cb6b70c4fc7014
parent9d46f3bbc8d84a3f4aea7e25de8d72c9548d9ad4
service: fix possible mem leak on initialize

This commit ensures that if that if we run out of memory
during the initialization of the service library, that the
first allocated memory is correctly freed instead of leaked.

Fixes: 21698354c832 ("service: introduce service cores concept")
Cc: stable@dpdk.org
Reported-by: Vipin Varghese <vipin.varghese@intel.com>
Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
lib/librte_eal/common/rte_service.c