From: Jim Meyering Date: Thu, 18 Feb 2010 10:05:38 +0000 (+0100) Subject: virsh: be careful to return "FALSE" upon OOM X-Git-Tag: v0.7.7~120 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62f4ae153b68a7879d63a59ecd742c3e53b1d53a;p=thirdparty%2Flibvirt.git virsh: be careful to return "FALSE" upon OOM * tools/virsh.c (cmdCPUBaseline): Add an explicit "return" statement after the "no_memory:" label. --- diff --git a/tools/virsh.c b/tools/virsh.c index e1d13006ca..dd916f3003 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -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. */