diff options
| author | Yingying Tang <yintang@codeaurora.org> | 2016-09-29 16:26:46 +0800 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2016-10-19 17:42:22 -0700 |
| commit | 4f2dedec3f4a14d491ea2b3041d4127552e7428c (patch) | |
| tree | a76b950ed7cff60d5e6c8288db2fbfeec28dfa51 | |
| parent | 2fb1438bf3fdb575697376d9b61184a2b90bf37a (diff) | |
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
| -rw-r--r-- | core/dp/htt/htt_h2t.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 */ } |
