[ovs-dev] [PATCH] netdev-dpdk: Fix memory leak in netdev_dpdk_configure_xstats().

Ilya Maximets i.maximets at samsung.com
Tue Jan 23 07:51:14 UTC 2018


CC: Michal Weglicki <michalx.weglicki at intel.com>
Fixes: 971f4b394c6e ("netdev: Custom statistics.")
Signed-off-by: Ilya Maximets <i.maximets at samsung.com>
---
 lib/netdev-dpdk.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c
index a37c8df..bdce304 100644
--- a/lib/netdev-dpdk.c
+++ b/lib/netdev-dpdk.c
@@ -1274,6 +1274,8 @@ netdev_dpdk_configure_xstats(struct netdev_dpdk *dev)
                     VLOG_WARN("Can't get XSTATS IDs for port: %"PRIu8,
                               dev->port_id);
                 }
+
+                free(rte_xstats);
             }
         }
     } else {
-- 
2.7.4



More information about the dev mailing list