From 46f39b6f409eb8000090d15f7bf21a8817ffec66 Mon Sep 17 00:00:00 2001 From: Amir Patel Date: Tue, 16 Apr 2019 12:56:26 +0530 Subject: [PATCH] qcacmn: Fix memory leak issue Free allocated memory in dp_vdev_getstats() Change-Id: Ie67570b8a6b3c3c28ec8f8be1a04c3b7054f02e4 --- dp/wifi3.0/dp_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dp/wifi3.0/dp_main.c b/dp/wifi3.0/dp_main.c index 9734e47d82..020aca0421 100644 --- a/dp/wifi3.0/dp_main.c +++ b/dp/wifi3.0/dp_main.c @@ -6600,6 +6600,8 @@ static void dp_vdev_getstats(void *vdev_handle, vdev_stats->rx.multicast.bytes + vdev_stats->rx.bcast.bytes; + qdf_mem_free(vdev_stats); + }