Re: [PATCH 1/2] conf: Don't leak 'primary' video property on error

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

 



On Thu, Feb 21, 2013 at 01:07:27PM -0700, Eric Blake wrote:
> On 02/21/2013 08:49 AM, Christophe Fergeau wrote:
> > It's only freed on normal returns from virDomainVideoDefParseXML,
> > but not when erroring out.
> > ---
> >  src/conf/domain_conf.c | 5 +++--
> >  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> ACK; your fix is reasonable.  A more idiomatic fix might be to coalesce
> the error and normal exits into a single cleanup: label; in fact,
> Peter's 16-part series on improving domain_conf.c may have done just
> that.  But as I haven't gotten that far in reviewing his series, and
> this is a real fix, you can go ahead and push and Peter can deal with
> any rebase fallout.

Thanks, I've pushed the 2 patches now.

Christophe

Attachment: pgpaMYsPlhufk.pgp
Description: PGP 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]