service: fix memory leak with new function
authorVipin Varghese <vipin.varghese@intel.com>
Fri, 26 Jan 2018 20:55:36 +0000 (02:25 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 26 Jan 2018 16:49:44 +0000 (17:49 +0100)
commitda23f0aa87d83e481295ceb5283a34232c336f36
treeba26d12bbd29891989ac5954854f3e4ed81629a0
parent01aa0d95c82163e72e69ac90b3c8cfa15728ce61
service: fix memory leak with new function

The rte_service_finalize routine checks if service is initialized
or not. If yes; releases internal memory for services and lcore
states are freed. This routine is to be invoked at end of application
termination.

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