提交 8dd8df6f 编写于 作者: C Cédric Bosdonnat

Fix qemu-nbd cleanup crashes

The virLXCControllerAppendNBDPids function didn't properly initialize
pids and npids. In case of failure it was crashing when freeing those.
上级 aa6c3fee
......@@ -533,8 +533,8 @@ static int virLXCControllerAppendNBDPids(virLXCControllerPtr ctrl,
const char *dev)
{
char *pidpath = NULL;
pid_t *pids;
size_t npids;
pid_t *pids = NULL;
size_t npids = 0;
size_t i;
int ret = -1;
pid_t pid;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册