Re: [PATCH] conf: avoid memory leaks while parsing seclabel

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

 



On 07/22/2014 10:53 PM, Martin Kletzander wrote:
> On Tue, Jul 22, 2014 at 10:08:21PM -0600, Eric Blake wrote:
>> Our seclabel parsing was repeatedly assigning malloc'd data into a
>> temporary variable, without first freeing the previous use.  Among
>> other leaks flagged by valgrind:
>>

>>
>> * src/conf/domain_conf.c (virSecurityLabelDefParseXML): Plug leaks
>> detected by valgrind.
>>
>> Signed-off-by: Eric Blake <eblake@xxxxxxxxxx>
>> ---
>> src/conf/domain_conf.c | 5 +++++
>> 1 file changed, 5 insertions(+)
>>
> 
> ACK,

Thanks; pushed.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

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]