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
This commit is contained in:
Yingying Tang 2016-09-29 16:26:46 +08:00 • committed by qcabuildsw
commit 4f2dedec3f

View file

@ -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 */
}