summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Maximets <i.maximets@samsung.com>2018-01-22 19:24:26 +0300
committerIan Stokes <ian.stokes@intel.com>2018-01-26 20:40:52 +0000
commit51be17b4ea04d69205a76f7a46095a6a3a05956c (patch)
treeca9a1171169bcbf6acc2476b2c069a57aae72266
parent1de83cb01f5981058ad87f9bfe6ca59d6c8d5c92 (diff)
downloadopenvswitch-51be17b4ea04d69205a76f7a46095a6a3a05956c.tar.gz
netdev-dpdk: Fix memory leak in netdev_dpdk_get_custom_stats().
CC: Michal Weglicki <michalx.weglicki@intel.com> Fixes: 971f4b394c6e ("netdev: Custom statistics.") Signed-off-by: Ilya Maximets <i.maximets@samsung.com> Signed-off-by: Ian Stokes <ian.stokes@intel.com>
-rw-r--r--lib/netdev-dpdk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c
index 4c1acc475..c98f111dd 100644
--- a/lib/netdev-dpdk.c
+++ b/lib/netdev-dpdk.c
@@ -2410,6 +2410,8 @@ netdev_dpdk_get_custom_stats(const struct netdev *netdev,
* reconfigured */
netdev_dpdk_clear_xstats(dev);
}
+
+ free(values);
}
ovs_mutex_unlock(&dev->mutex);