]> xenbits.xensource.com Git - libvirt.git/commitdiff
virsh: be careful to return "FALSE" upon OOM
authorJim Meyering <meyering@redhat.com>
Thu, 18 Feb 2010 10:05:38 +0000 (11:05 +0100)
committerJim Meyering <meyering@redhat.com>
Fri, 19 Feb 2010 10:54:35 +0000 (11:54 +0100)
* tools/virsh.c (cmdCPUBaseline): Add an explicit "return" statement
after the "no_memory:" label.

tools/virsh.c

index e1d13006ca8e2d07fd51e0b528652218ce88b2cc..dd916f300356286eca80b5b248f19c8bb7c0beaf 100644 (file)
@@ -7141,6 +7141,7 @@ cleanup:
 no_memory:
     vshError(ctl, "%s", _("Out of memory"));
     ret = FALSE;
+    return ret;
 }
 
 /* Common code for the edit / net-edit / pool-edit functions which follow. */