[ovs-dev] [PATCH v3 ovn 1/3] OVN: Repair memory leak for OVN controller events.

Numan Siddique nusiddiq at redhat.com
Wed Aug 21 20:18:17 UTC 2019


On Mon, Aug 19, 2019 at 8:08 PM Lorenzo Bianconi <
lorenzo.bianconi at redhat.com> wrote:

> From: Mark Michelson <mmichels at redhat.com>
>
> From: Mark Michelson <mmichels at redhat.com>
>
> Controller event action is leaking its genopts. This corrects the error.
>
> Signed-off-by: Mark Michelson <mmichels at redhat.com>
> Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi at redhat.com>
>

I applied this patch of this series to master.

I edited the commit message as there was "From" tag at the start of the
commit body.

Thanks
Numan



> ---
>  lib/actions.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/lib/actions.c b/lib/actions.c
> index 81950e7df..08c589ab3 100644
> --- a/lib/actions.c
> +++ b/lib/actions.c
> @@ -1760,8 +1760,9 @@ parse_trigger_event(struct action_context *ctx,
>  }
>
>  static void
> -ovnact_controller_event_free(struct ovnact_controller_event *event
> OVS_UNUSED)
> +ovnact_controller_event_free(struct ovnact_controller_event *event)
>  {
> +    free_gen_options(event->options, event->n_options);
>  }
>
>  static void
> --
> 2.21.0
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-dev
>


More information about the dev mailing list