ipc: fix resource leak in init failure
Coverity issue: 272609 Fixes: f05e26051c15 ("eal: add IPC asynchronous request") Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com> Acked-by: Jianfeng Tan <jianfeng.tan@intel.com>
This commit is contained in:
parent
dd7b7f9a52
commit
441d676777
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user