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

Eric Blake eblake at redhat.com
Wed Jul 23 19:57:46 UTC 2014


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 at redhat.com>
>> ---
>> 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140723/f9a42e26/attachment-0001.sig>


More information about the libvir-list mailing list