Browse Source

qcacmn: Fix memory leak issue

Free allocated memory in dp_vdev_getstats()

Change-Id: Ie67570b8a6b3c3c28ec8f8be1a04c3b7054f02e4
Amir Patel 6 years ago
parent
commit
46f39b6f40
1 changed files with 2 additions and 0 deletions
  1. 2 0
      dp/wifi3.0/dp_main.c

+ 2 - 0
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);
+
 }