X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Froute-table.c;h=63a09f2e8c3cf6e4c8c0429e0a44a4fe7284e231;hb=c50c79431efa7b85688fb4be61d97c5ee7a9c459;hp=58c1b60159c90ca404815fef30511ee0f14d2ec1;hpb=2f0dc471d0a6eb61c525e8bff927cf19e835b87f;p=openvswitch diff --git a/lib/route-table.c b/lib/route-table.c index 58c1b601..63a09f2e 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. @@ -246,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; @@ -437,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;