2
0
mirror of https://github.com/openvswitch/ovs synced 2025-09-05 00:35:33 +00:00

dpif-linux: Fix memory and file descriptor leak in dpif_linux_close().

Found with valgrind.
This commit is contained in:
Ben Pfaff
2011-06-07 13:15:46 -07:00
parent 045b2e5c77
commit d3c110b648

View File

@@ -289,6 +289,7 @@ static void
dpif_linux_close(struct dpif *dpif_)
{
struct dpif_linux *dpif = dpif_linux_cast(dpif_);
nl_sock_destroy(dpif->mc_sock);
rtnetlink_link_notifier_unregister(&dpif->port_notifier);
sset_destroy(&dpif->changed_ports);
free(dpif->lru_bitmap);