Re: [PATCH 5/8] virVMXParseConfig: Don't leak def->videos

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

 



On 08/04/2017 04:56 PM, Ján Tomko wrote:
> On Fri, Aug 04, 2017 at 04:22:33PM +0200, Michal Privoznik wrote:
>> This function calls virDomainDefAddImplicitDevices() which adds
>> implicit video device to domain definition. However, later in the
>> process the function just ignores this and overwrites the @videos
>> array without prior free.
>>
> 
> We should not be calling virDomainDefAddImplicitDevices before
> all the explicit devices are added to the domain definition.
> 
> What is the point of adding a device just to free it a few lines later?

Because the parsing code expects some controllers to be in place before
it gets to video devices. Just look around the place where
virDomainDefAddImplicitDevices() is called. If you have a bright idea
how to fix it I'm all ears.

Michal

--
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]
  Powered by Linux