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

Re: [libvirt] [PATCH] conf: fix class_id bitmap leak in virNetworkObj



On 01/15/2013 09:48 AM, Ján Tomko wrote:
> Commit '07d1b6b' added class_id bitmap to virNetworkObj but never freed
> it.
> ---
>  src/conf/network_conf.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/src/conf/network_conf.c b/src/conf/network_conf.c
> index 48639a9..9c35ea8 100644
> --- a/src/conf/network_conf.c
> +++ b/src/conf/network_conf.c
> @@ -235,6 +235,7 @@ void virNetworkObjFree(virNetworkObjPtr net)
>  
>      virNetworkDefFree(net->def);
>      virNetworkDefFree(net->newDef);
> +    virBitmapFree(net->class_id);
>  
>      virMutexDestroy(&net->lock);
>  

ACK.


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