提交 625f1745 编写于 作者: J Jim Meyering

lxc: don't unlink(NULL) in main

* src/lxc_controller.c (main): Unlink sockpath only if it's non-NULL.
上级 e4ac19a8
......@@ -803,7 +803,8 @@ cleanup:
if (def)
virFileDeletePid(LXC_STATE_DIR, def->name);
lxcControllerCleanupInterfaces(nveths, veths);
unlink(sockpath);
if (sockpath)
unlink(sockpath);
VIR_FREE(sockpath);
return rc;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册