This fixes a memory leak, although it was not a significant leak because
the symbol table is in use until shortly before ovn-controller exits.

Reported-by: William Tu <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
---
 ovn/controller/ofctrl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ovn/controller/ofctrl.c b/ovn/controller/ofctrl.c
index 3876ff6..10c8105 100644
--- a/ovn/controller/ofctrl.c
+++ b/ovn/controller/ofctrl.c
@@ -549,6 +549,7 @@ ofctrl_destroy(void)
     rconn_destroy(swconn);
     ovn_flow_table_destroy(&installed_flows);
     rconn_packet_counter_destroy(tx_counter);
+    expr_symtab_destroy(&symtab);
     shash_destroy(&symtab);
 }
 
-- 
2.10.2

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to