diff options
| author | Yingying Tang <yintang@qti.qualcomm.com> | 2016-03-04 14:35:56 +0800 |
|---|---|---|
| committer | Anjaneedevi Kapparapu <akappa@codeaurora.org> | 2016-03-24 13:35:24 +0530 |
| commit | 9c9604376cf97ea1dd9a9bd6cfed5a62c60cb4f4 (patch) | |
| tree | 562d4794c53d4de04afb2e9635856206df77103d | |
| parent | b80d99981f353d10c40f300abd5653480900a125 (diff) | |
qcacld-2.0: Avoid memory leak in htt_h2t_dbg_stats_get()
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/CLD_TXRX/HTT/htt_h2t.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CORE/CLD_TXRX/HTT/htt_h2t.c b/CORE/CLD_TXRX/HTT/htt_h2t.c index 7de9e27dde23..541dec2a86d5 100644 --- a/CORE/CLD_TXRX/HTT/htt_h2t.c +++ b/CORE/CLD_TXRX/HTT/htt_h2t.c @@ -563,6 +563,7 @@ htt_h2t_dbg_stats_get( /* FIX THIS - add more details? */ adf_os_print("%#x %#x stats not supported\n", stats_type_upload_mask, stats_type_reset_mask); + htt_htc_pkt_free(pdev, pkt); return -1; /* failure */ } |
