X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fnetdev-linux.c;h=5abf6e16b7d13d467b3e49647f0bf6803413439a;hb=576e26d7b47f4e53116ef0b5f035d260f426d37b;hp=2faffa346011d046b541e9b54b0419c6c512e09e;hpb=2a6cb303b0b9956952a1599092e64f5805ee741a;p=sliver-openvswitch.git 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; }