[ovs-dev] [PATCH 1/1] ovn-northd: fix memory leak in add_distributed_nat_routes() function
Mark Michelson
mmichels at redhat.com
Wed Jul 31 13:17:04 UTC 2019
Thanks for the fix!
Acked-by: Mark Michelson <mmichels at redhat.com>
This will need a backport to the OVS 2.12 branch as well.
On 7/31/19 6:43 AM, Damijan Skvarc wrote:
> Within this function actions & match dynamic strings are used as helper
> variables for adding entries into logical flow table. Variables are
> used several times in order to optimize number of memory allocations,
> however at the end memory was forgotten to be deallocated.
>
> Signed-off-by: Damijan Skvarc <damjan.skvarc at gmail.com>
> ---
> northd/ovn-northd.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/northd/ovn-northd.c b/northd/ovn-northd.c
> index 979dea4..8588961 100644
> --- a/northd/ovn-northd.c
> +++ b/northd/ovn-northd.c
> @@ -5667,6 +5667,8 @@ add_distributed_nat_routes(struct hmap *lflows, const struct ovn_port *op)
> ds_clear(&actions);
> }
> }
> + ds_destroy(&match);
> + ds_destroy(&actions);
> }
>
> static void
>
More information about the dev
mailing list