Re: [PATCH] Avoid two more leaks.

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

 



Daniel Veillard <veillard@xxxxxxxxxx> wrote:

> On Mon, Mar 03, 2008 at 11:50:30AM +0100, Jim Meyering wrote:
>> Daniel Veillard <veillard@xxxxxxxxxx> wrote:
>> ...
>> Thanks for the quick feedback.
>>
>> >   Okay, i would have checked caps->host.nmigrateTrans against NULL first
>>
>> If I were to do that, "make distcheck" would detect
>> the redundant if-before-free and make the build fail.
>
>   My point is that if you access
>     caps->host.migrateTrans[i]
> then you should make sure caps->host.migrateTrans is not NULL,

That's ok because it's guarded by nmigrateTrans > 0, which is true IFF
migrateTrans is non-NULL -- see virCapabilitiesAddHostMigrateTransport.

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