Re: [libvirt] [PATCH] lxc_container.c: avoid a leak on error paths

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

 



On Fri, Sep 04, 2009 at 04:15:20PM +0200, Jim Meyering wrote:
> This started with a dead-store report:
> 
>     File:		lxc_container.c
>     Location:		line 417, column 10
>     Description:	Although the value stored to 'rc' is used in the
>           enclosing expression, the value is never actually read from 'rc'
> 
> But there was a leak, too, upon any but the first failure.
> This fixes both.

  Ah, right ! Good catch :-)

   ACK !

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel@xxxxxxxxxxxx  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/

--
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]