eal: fix leak on multi-process request error
authorGao Feng <davidfgao@tencent.com>
Wed, 5 Dec 2018 02:50:25 +0000 (10:50 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 19 Dec 2018 23:01:28 +0000 (00:01 +0100)
commite14bc93e8f231455ac7ffb45189f8dedcc45276d
tree8b71cc1415136e7feeebee4c8d2f644be8f53ac2
parentc9b413c3b1cfb52740acb2a0fbf1b73acdb93646
eal: fix leak on multi-process request error

When rte_eal_alarm_set failed, need to free the bundle mem in the
error handler of handle_primary_request and handle_secondary_request.

Fixes: 244d5130719c ("eal: enable hotplug on multi-process")
Fixes: ac9e4a17370f ("eal: support attach/detach shared device from secondary")
Cc: stable@dpdk.org
Signed-off-by: Gao Feng <davidfgao@tencent.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/common/hotplug_mp.c