summaryrefslogtreecommitdiff
path: root/lib/netdev-linux.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2009-09-22 10:17:44 -0700
committerBen Pfaff <blp@nicira.com>2009-09-22 10:17:44 -0700
commit576e26d7b47f4e53116ef0b5f035d260f426d37b (patch)
tree485a55122153924ae5255840cea787eec32b95ae /lib/netdev-linux.c
parent2a6cb303b0b9956952a1599092e64f5805ee741a (diff)
parent36becebea2d1e816a636d62a226521d0bf26bb18 (diff)
downloadopenvswitch-576e26d7b47f4e53116ef0b5f035d260f426d37b.tar.gz
Merge citrix branch into master.
Diffstat (limited to 'lib/netdev-linux.c')
-rw-r--r--lib/netdev-linux.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c
index 2faffa346..5abf6e16b 100644
--- a/lib/netdev-linux.c
+++ b/lib/netdev-linux.c
@@ -1496,6 +1496,7 @@ get_stats_via_netlink(int ifindex, struct netdev_stats *stats)
if (!attrs[IFLA_STATS]) {
VLOG_WARN_RL(&rl, "RTM_GETLINK reply lacks stats");
+ ofpbuf_delete(reply);
return EPROTO;
}
@@ -1522,6 +1523,8 @@ get_stats_via_netlink(int ifindex, struct netdev_stats *stats)
stats->tx_heartbeat_errors = rtnl_stats->tx_heartbeat_errors;
stats->tx_window_errors = rtnl_stats->tx_window_errors;
+ ofpbuf_delete(reply);
+
return 0;
}