eal: fix memory leak on control thread failure
authorJianfeng Tan <jianfeng.tan@intel.com>
Wed, 2 May 2018 10:26:32 +0000 (10:26 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 2 May 2018 15:15:02 +0000 (17:15 +0200)
commite87923a9be65e0f3ebd1e45d116a2618b6dcfe07
treed1dae7ad7ccaaf6020efa65725752efd06ccd759
parentaf7551e2bfceef7ddeb7941b26b06a9b6d6dee5e
eal: fix memory leak on control thread failure

params is not freed if pthread_create() fails. The fix is
straight-forward.

Fixes: 3d09a6e26d8b ("eal: fix threads block on barrier")

Reported-by: Olivier Matz <olivier.matz@6wind.com>
Signed-off-by: Jianfeng Tan <jianfeng.tan@intel.com>
Reviewed-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_eal/common/eal_common_thread.c