[ovs-dev] [PATCH v2.12] OVN: Repair memory leak for OVN controller events.

Mark Michelson mmichels at redhat.com
Thu Aug 15 18:12:18 UTC 2019


Controller event action is leaking its genopts. This corrects the error.
---
 ovn/lib/actions.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ovn/lib/actions.c b/ovn/lib/actions.c
index b0cb3490b..274297194 100644
--- a/ovn/lib/actions.c
+++ b/ovn/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.14.5



More information about the dev mailing list