[ovs-dev] [PATCH branch-2.12] lflow.c: Fix memory leak of lflow_ref_list_node->ref_name.
blp at ovn.org
Thu Oct 31 16:36:02 UTC 2019
On Wed, Oct 30, 2019 at 10:51:12PM -0700, Han Zhou 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: 43e6900a7991 ("ovn-controller: Maintain resource references for logical flows.")
> Acked-by: Numan Siddique <numans at ovn.org>
> Signed-off-by: Han Zhou <hzhou at ovn.org>
> Note: This patch has been merged to ovn repo. This is backport to branch-2.12.
Thanks, applied to branch-2.12.
More information about the dev