[libvirt] [PATCH] nwfilter: Fix memory leak in the ebtables subdriver

Matthias Bolte matthias.bolte at googlemail.com
Sat Apr 30 15:50:10 UTC 2011


2011/4/30 Eric Blake <eblake at redhat.com>:
> On 04/30/2011 05:12 AM, Matthias Bolte wrote:
>> Call shutdown functions for all subcompontents in nwfilterDriverShutdown.
>
> s/subcompontents/subcomponents/ (twice)

Fixed.

>> +++ b/src/conf/nwfilter_conf.c
>> @@ -125,6 +125,7 @@ struct int_map {
>>   * only one filter update allowed
>>   */
>>  static virMutex updateMutex;
>> +static bool initialized = false;
>
> You could omit '= false' and still get the same results, since static
> storage is guaranteed to be zero-initialized, but that's just style and
> does not have to be changed.
>
> ACK.
>

I pushed it unchanged, thanks.

Matthias




More information about the libvir-list mailing list