Re: [PATCH] virsh-domain: Add a missing check and fix leak in cmdScreenshot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/25/2013 08:54 AM, Hongwei Bi wrote:
> 
> ---
>  tools/virsh-domain.c |    5 +++--
>  1 files changed, 3 insertions(+), 2 deletions(-)
> 

> @@ -4620,7 +4621,7 @@ cmdScreenshot(vshControl *ctl, const vshCmd *cmd)
>  
>      if (!file) {
>          if (!(file=vshGenFileName(ctl, dom, mime)))

I fixed up the spacing of this = while at it.

> -            return false;
> +            goto cleanup;

ACK and pushed.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]