Re: [PATCH] xenapi: Fix double-freeing the session in xenapiClose

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

 



2011/7/21 Eric Blake <eblake@xxxxxxxxxx>:
> On 07/21/2011 10:11 AM, Matthias Bolte wrote:
>>
>> xen_session_logout already frees the whole session object.
>> Don't call xenSessionFree on a freed session object.
>>
>> Reported by Sharmila Radhakrishnan.
>> ---
>>  src/xenapi/xenapi_driver.c |    2 +-
>>  1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/src/xenapi/xenapi_driver.c b/src/xenapi/xenapi_driver.c
>> index 97da1d1..dbc03cb 100644
>> --- a/src/xenapi/xenapi_driver.c
>> +++ b/src/xenapi/xenapi_driver.c
>> @@ -230,7 +230,7 @@ xenapiClose (virConnectPtr conn)
>>
>>      if (priv->session != NULL) {
>>          xen_session_logout(priv->session);
>> -        xenSessionFree(priv->session);
>> +        priv->session = NULL;
>>      }
>
> ACK.

Thanks, pushed.

-- 
Matthias Bolte
http://photron.blogspot.com

--
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]