Re: [PATCH] util: fix fd leak in qemu_write_pidfile()

2021-05-10 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20210510095708.950474-1-wangji...@huawei.com/ Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20210510095708.950474-1-wangji...@huawei.com Subject: [PATCH] util: fix fd leak in

[PATCH] util: fix fd leak in qemu_write_pidfile()

2021-05-10 Thread Jie Wang
if execute qemu_open success, have no branch to free the fd, so unlink it inadvance, let it free by process exit. Signed-off-by: Jie Wang --- util/oslib-posix.c | 1 + 1 file changed, 1 insertion(+) diff --git a/util/oslib-posix.c b/util/oslib-posix.c index 36820fec16..30bf39bf4f 100644 --- a/u