mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 14:45:24 +00:00
lxc: don't unlink(NULL) in main
* src/lxc_controller.c (main): Unlink sockpath only if it's non-NULL.
This commit is contained in:
parent
e4ac19a87a
commit
625f1745dd
@ -803,6 +803,7 @@ cleanup:
|
||||
if (def)
|
||||
virFileDeletePid(LXC_STATE_DIR, def->name);
|
||||
lxcControllerCleanupInterfaces(nveths, veths);
|
||||
if (sockpath)
|
||||
unlink(sockpath);
|
||||
VIR_FREE(sockpath);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user