[ovs-dev] [PATCH ovn 10/14] actions: Fix leak of dynamic string on fwd group encoding failure.

Ilya Maximets i.maximets at ovn.org
Fri Nov 20 00:17:20 UTC 2020


CC: Manoj Sharma <manoj.sharma at nutanix.com>
Fixes: edb240081518 ("Forwarding group to load balance l2 traffic with liveness detection")
Signed-off-by: Ilya Maximets <i.maximets at ovn.org>
---
 lib/actions.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/actions.c b/lib/actions.c
index ea949e1bd..99ce04197 100644
--- a/lib/actions.c
+++ b/lib/actions.c
@@ -3446,6 +3446,7 @@ encode_FWD_GROUP(const struct ovnact_fwd_group *fwd_group,
         if (fwd_group->liveness) {
             /* Find the openflow port number of the tunnel port */
             if (!ep->tunnel_ofport(ep->aux, port_name, &ofport)) {
+                ds_destroy(&ds);
                 return;
             }
 
-- 
2.25.4



More information about the dev mailing list