ovn-northd: Fix memory leak in ARP reply flows.
authorJustin Pettit <jpettit@nicira.com>
Tue, 20 Oct 2015 19:59:28 +0000 (12:59 -0700)
committerJustin Pettit <jpettit@nicira.com>
Thu, 22 Oct 2015 23:02:50 +0000 (16:02 -0700)
Signed-off-by: Justin Pettit <jpettit@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
ovn/northd/ovn-northd.c

index 282f8ae..60786d2 100644 (file)
@@ -1406,6 +1406,8 @@ build_lrouter_flows(struct hmap *datapaths, struct hmap *ports,
             op->json_key);
         ovn_lflow_add(lflows, op->od, S_ROUTER_IN_IP_INPUT, 90,
                       match, actions);
+        free(match);
+        free(actions);
 
         /* Drop IP traffic to this router. */
         match = xasprintf("ip4.dst == "IP_FMT, IP_ARGS(op->ip));