From 4f2dedec3f4a14d491ea2b3041d4127552e7428c Mon Sep 17 00:00:00 2001 From: Yingying Tang Date: Thu, 29 Sep 2016 16:26:46 +0800 Subject: [PATCH] qcacld-3.0: Avoid memory leak in htt_h2t_dbg_stats_get() Propagate from qcacld-2.0 to qcacld-3.0 Add htt_htc_pkt_free() in htt_h2t_dbg_stats_get() to avoid memory leak in the error case. Change-Id: Ie0cd4939706046370c7a0ce4053be1103637f769 CRs-Fixed: 979671 --- core/dp/htt/htt_h2t.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/dp/htt/htt_h2t.c b/core/dp/htt/htt_h2t.c index b2a8c0393d37..e4b7511f311b 100644 --- a/core/dp/htt/htt_h2t.c +++ b/core/dp/htt/htt_h2t.c @@ -748,6 +748,7 @@ htt_h2t_dbg_stats_get(struct htt_pdev_t *pdev, /* FIX THIS - add more details? */ qdf_print("%#x %#x stats not supported\n", stats_type_upload_mask, stats_type_reset_mask); + htt_htc_pkt_free(pdev, pkt); return -EINVAL; /* failure */ }