Re: [PATCHv2 2/2] vbox: snapshot: Avoid memleaks in functions dealing with disk arrays

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

 



On 06/17/14 16:33, Pavel Hrdina wrote:
> On 17.6.2014 13:32, Peter Krempa wrote:
>> In virVBoxSnapshotConfRemoveFakeDisks and
>> virVBoxSnapshotConfDiskIsInMediaRegistry the disk array constructed from
>> all the disks would be leaked at the end of the function and on
>> allocation errors. Also the temporary disk list would be leaked.
>>
>> Add a cleanup section and free the memory properly.
>>
>> Found by coverity.
>> ---
>>  src/vbox/vbox_snapshot_conf.c | 40 ++++++++++++++++++++++++++++++----------
>>  1 file changed, 30 insertions(+), 10 deletions(-)
>>
> 
> ACK
> 

Pushed; Thanks.

Peter


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]