]> git.proxmox.com Git - ovs.git/commitdiff
ofctrl: Free contents of symbol table in ofctrl_destroy().
authorBen Pfaff <blp@ovn.org>
Wed, 8 Feb 2017 16:40:21 +0000 (08:40 -0800)
committerBen Pfaff <blp@ovn.org>
Wed, 8 Feb 2017 19:17:24 +0000 (11:17 -0800)
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 <u9012063@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
ovn/controller/ofctrl.c

index 3876ff67e341c5fbf85cdf4a7ff6d5491ca37df6..10c8105b25290e999b415a38b6a84dc6e0c88a12 100644 (file)
@@ -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);
 }