X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Froute-table.c;h=63a09f2e8c3cf6e4c8c0429e0a44a4fe7284e231;hb=c22c56bd746352f5c70a0d99bb3f548d03cfd105;hp=cd3b37f1cb9c34c52931601ff781161e1949b6ea;hpb=f4dc8c5895ed6a95c7331910c4c54107d783cba5;p=sliver-openvswitch.git diff --git a/lib/route-table.c b/lib/route-table.c index cd3b37f1c..63a09f2e8 100644 --- a/lib/route-table.c +++ b/lib/route-table.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011 Nicira Networks. + * Copyright (c) 2011, 2012 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -189,6 +189,7 @@ route_table_unregister(void) if (!register_count) { nln_notifier_destroy(route_notifier); + route_notifier = NULL; nln_destroy(nln); nln = NULL; @@ -245,6 +246,7 @@ route_table_reset(void) rtmsg->rtgen_family = AF_INET; nl_dump_start(&dump, rtnl_sock, &request); + ofpbuf_uninit(&request); while (nl_dump_next(&dump, &reply)) { struct route_table_msg msg; @@ -436,6 +438,8 @@ name_table_reset(void) rtmsg->rtgen_family = AF_INET; nl_dump_start(&dump, rtnl_sock, &request); + ofpbuf_uninit(&request); + while (nl_dump_next(&dump, &reply)) { struct rtnetlink_link_change change;