From: Anatoly Burakov Date: Tue, 17 Apr 2018 15:46:26 +0000 (+0100) Subject: ipc: fix resource leak in init failure X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=441d676777d07050711ae3808f5acefd774046c5;p=dpdk.git ipc: fix resource leak in init failure Coverity issue: 272609 Fixes: f05e26051c15 ("eal: add IPC asynchronous request") Signed-off-by: Anatoly Burakov Acked-by: Jianfeng Tan --- diff --git a/lib/librte_eal/common/eal_common_proc.c b/lib/librte_eal/common/eal_common_proc.c index ad02c00316..a3297080e8 100644 --- a/lib/librte_eal/common/eal_common_proc.c +++ b/lib/librte_eal/common/eal_common_proc.c @@ -658,6 +658,7 @@ rte_mp_channel_init(void) RTE_LOG(ERR, EAL, "failed to create mp thead: %s\n", strerror(errno)); close(mp_fd); + close(dir_fd); mp_fd = -1; return -1; }