ebb439
From 7ea067754e208071f97e5ed89264094698fd7363 Mon Sep 17 00:00:00 2001
ebb439
From: Ilya Maximets <i.maximets@ovn.org>
ebb439
Date: Fri, 20 Nov 2020 01:17:24 +0100
ebb439
Subject: [PATCH 16/16] ovn-nbctl: Fix leak of array of new policies.
ebb439
ebb439
CC: Tao YunXiang <taoyunxiang@cmss.chinamobile.com>
ebb439
Fixes: 5820502a5507 ("ovn-nbctl.c: Fix lr-policy-del command")
ebb439
Acked-by: Dumitru Ceara <dceara@redhat.com>
ebb439
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
ebb439
Signed-off-by: Numan Siddique <numans@ovn.org>
ebb439
---
ebb439
 utilities/ovn-nbctl.c | 1 +
ebb439
 1 file changed, 1 insertion(+)
ebb439
ebb439
diff --git a/utilities/ovn-nbctl.c b/utilities/ovn-nbctl.c
ebb439
index 9d04a85a9..24faaf20f 100644
ebb439
--- a/utilities/ovn-nbctl.c
ebb439
+++ b/utilities/ovn-nbctl.c
ebb439
@@ -3758,6 +3758,7 @@ nbctl_lr_policy_del(struct ctl_context *ctx)
ebb439
                 if (!shash_find(&ctx->options, "--if-exists")) {
ebb439
                     ctl_error(ctx, "Logical router policy uuid is not found.");
ebb439
                 }
ebb439
+                free(new_policies);
ebb439
                 return;
ebb439
             }
ebb439
 
ebb439
-- 
ebb439
2.28.0
ebb439