2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-23 14:57:06 +00:00

Fix memory leaks.

Found by valgrind.

Reported-by: Ethan Jackson <ethan@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
Ben Pfaff
2012-04-23 13:22:10 -07:00
parent 36f3999b70
commit 896b32721d
2 changed files with 6 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011 Nicira Networks.
* Copyright (c) 2011, 2012 Nicira Networks.
*
* 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;