[ovs-dev] [PATCH ovn] lflow.c: Fix memory leak of lflow_ref_list_node->ref_name.

Han Zhou hzhou at ovn.org
Tue Oct 22 20:08:30 UTC 2019


On Mon, Oct 21, 2019 at 11:18 PM Numan Siddique <numans at ovn.org> wrote:
>
>
>
> On Tue, Oct 22, 2019 at 6:57 AM Han Zhou <hzhou at ovn.org> wrote:
>>
>> The ref_name is copied in lflow_resource_add(), but forgot to free in
>> lflow_resource_destroy_lflow(). It can be fixed by freeing it in
>> lflow_resource_destroy_lflow(). However, this field is never really
>> used, so just delete it from lflow_ref_list_node, together with the
>> "type" field.
>>
>> Fixes: d2aa2c7cafead ("ovn-controller: Maintain resource references for
logical flows.")
>> Signed-off-by: Han Zhou <hzhou at ovn.org>
>
>
> Acked-by: Numan Siddique <numans at ovn.org>
>
Thanks. I applied this to master. I will send a backport patch for 2.12.


More information about the dev mailing list