From: Jesse Gross Date: Wed, 28 Sep 2011 16:52:07 +0000 (-0700) Subject: route-table: Clear route_notifier after free. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f0dc471d0a6eb61c525e8bff927cf19e835b87f;p=openvswitch route-table: Clear route_notifier after free. If the routing table is destroyed and re-created then it will trigger another assertion because route_notifier is not NULL, even though it has already been freed. --- diff --git a/lib/route-table.c b/lib/route-table.c index cd3b37f1..58c1b601 100644 --- a/lib/route-table.c +++ b/lib/route-table.c @@ -189,6 +189,7 @@ route_table_unregister(void) if (!register_count) { nln_notifier_destroy(route_notifier); + route_notifier = NULL; nln_destroy(nln); nln = NULL;