[ovs-dev] [PATCH] ovn-northd: Fix memory leak in logical router flow generation.

Justin Pettit jpettit at nicira.com
Thu Oct 22 01:06:16 UTC 2015


Signed-off-by: Justin Pettit <jpettit at nicira.com>
---
 ovn/northd/ovn-northd.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/ovn/northd/ovn-northd.c b/ovn/northd/ovn-northd.c
index e199937..282f8ae 100644
--- a/ovn/northd/ovn-northd.c
+++ b/ovn/northd/ovn-northd.c
@@ -1328,6 +1328,7 @@ build_lrouter_flows(struct hmap *datapaths, struct hmap *ports,
             ETH_ADDR_ARGS(op->mac), op->json_key);
         ovn_lflow_add(lflows, op->od, S_ROUTER_IN_ADMISSION, 50,
                       match, "next;");
+        free(match);
     }
 
     /* Logical router ingress table 1: IP Input. */
-- 
1.7.5.4




More information about the dev mailing list