Re: [PATCH] python: plug memory leak on libvirt_virConnectOpenAuth

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

 



On 12/19/2011 02:47 AM, Osier Yang wrote:
> On 2011年12月19日 16:12, ajia@xxxxxxxxxx wrote:
>> From: Alex Jia<ajia@xxxxxxxxxx>
>>
>> * Detected by valgrind. Leak introduced in commit 5ab109f.

Wow - present since 0.4.1!

>> +++ b/python/libvirt-override.c
>> @@ -1520,6 +1520,7 @@ libvirt_virConnectOpenAuth(PyObject *self
>> ATTRIBUTE_UNUSED, PyObject *args) {
>>
>>       c_retval = virConnectOpenAuth(name,&auth, flags);
>>       LIBVIRT_END_ALLOW_THREADS;
>> +    free(auth.credtype);
>>       py_retval = libvirt_virConnectPtrWrap((virConnectPtr) c_retval);
>>       return(py_retval);
>>   }
> 
> ACK

Pushed.

-- 
Eric Blake   eblake@xxxxxxxxxx    +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]