[ovs-dev] [PATCH ovn 13/14] ovn-nbctl: Fix IP leak on failure of lr policy addition.

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


Fixes: 742474bad730 ("ovn-nbctl: Enhance lr-policy-add to set the options.")
Signed-off-by: Ilya Maximets <i.maximets at ovn.org>
---
 utilities/ovn-nbctl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/utilities/ovn-nbctl.c b/utilities/ovn-nbctl.c
index 526dbf86c..448c86f42 100644
--- a/utilities/ovn-nbctl.c
+++ b/utilities/ovn-nbctl.c
@@ -3689,6 +3689,7 @@ nbctl_lr_policy_add(struct ctl_context *ctx)
         } else {
             ctl_error(ctx, "No value specified for the option : %s", key);
             free(key);
+            free(next_hop);
             return;
         }
         free(key);
-- 
2.25.4



More information about the dev mailing list