mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05:00
don't crash when called without arguments
This commit is contained in:
1 parent
1d6c713b18
commit
9f9ce6130d
2 files changed
+7
-1
No files matched your search
@@ -1,3 +1,8 @@
|
||||
Thu May 7 09:16:05 CEST 2009 Guido Günther <agx@sigxcpu.org>
|
||||
|
||||
* src/lxc_controller.c (main): don't crash when called without
|
||||
arguments
|
||||
|
||||
Wed May 6 16:55:02 GMT 2009 Mark McLoughlin <markmc@redhat.com>
|
||||
|
||||
* src/qemu_driver.c: fix handling of <hostdev managed='yes'>
|
||||
|
||||
@@ -745,7 +745,8 @@ int main(int argc, char *argv[])
|
||||
|
||||
|
||||
cleanup:
|
||||
virFileDeletePid(LXC_STATE_DIR, def->name);
|
||||
if (def)
|
||||
virFileDeletePid(LXC_STATE_DIR, def->name);
|
||||
lxcControllerCleanupInterfaces(nveths, veths);
|
||||
unlink(sockpath);
|
||||
VIR_FREE(sockpath);
|
||||
|
||||
Reference in new issue
Block a user