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

Re: [libvirt] [PATCH] qemu: Fix one memory leak



于 2011年06月22日 18:04, Michal Privoznik 写道:
> On 22.06.2011 12:20, Osier Yang wrote:
>> * src/qemu/qemu_domain.c: (qemuDomainAppendLog)
>>
>> Free "message" in "cleanup".
>> ---
>>   src/qemu/qemu_domain.c |    1 +
>>   1 files changed, 1 insertions(+), 0 deletions(-)
>>
>> diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
>> index 5fe66ac..fab316f 100644
>> --- a/src/qemu/qemu_domain.c
>> +++ b/src/qemu/qemu_domain.c
>> @@ -947,5 +947,6 @@ cleanup:
>>       if (fd != logFD)
>>           VIR_FORCE_CLOSE(fd);
>>
>> +    VIR_FREE(message);
>>       return ret;
>>   }
> 
> ACK
> 
> Michal

Thanks, applied

Osier


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