[libvirt] [PATCH] free cpumask of vcpupinDef
Eric Blake
eblake at redhat.com
Thu Apr 14 15:48:01 UTC 2011
On 04/14/2011 12:50 AM, Osier Yang wrote:
> 于 2011年04月14日 11:34, Hu Tao 写道:
>> cpumask doesn't get freed when vcpupinDef being freed, this leaks
>> memory.
>> ---
>> src/conf/domain_conf.c | 1 +
>> 1 files changed, 1 insertions(+), 0 deletions(-)
>>
>> diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
>> index 1de4c7a..7b6b044 100644
>> --- a/src/conf/domain_conf.c
>> +++ b/src/conf/domain_conf.c
>> @@ -858,6 +858,7 @@ virDomainVcpupinDefFree(virDomainVcpupinDefPtr *def,
>> return;
>>
>> for(i = 0; i< nvcpupin; i++) {
>> + VIR_FREE(def[i]->cpumask);
>> VIR_FREE(def[i]);
>> }
>>
>
> Oh, Introduced by me, thanks for the fix, ACK, :)
Pushed.
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110414/95b01373/attachment-0001.sig>
More information about the libvir-list
mailing list