eal: fix IPC memory leak on device hotplug
authorDarek Stojaczyk <dariusz.stojaczyk@intel.com>
Mon, 29 Oct 2018 11:47:18 +0000 (12:47 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 31 Oct 2018 18:16:42 +0000 (19:16 +0100)
commit04854a39e6f61a376bf3cc93087dfc15ab31e3be
tree84721d0a0897f8f073b7e64de9542b54adb8ae03
parent98372f54ce9b952531680c147252b4e53ed8ea43
eal: fix IPC memory leak on device hotplug

rte_mp_request_sync() says that the caller is responsible
for freeing one of its parameters afterwards. EAL didn't
do that, causing a memory leak.

Fixes: 244d5130719c ("eal: enable hotplug on multi-process")

Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/common/hotplug_mp.c