diff options
| author | Houston Hoffman <hhoffman@codeaurora.org> | 2017-02-07 16:49:32 -0800 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2017-02-08 09:11:09 -0800 |
| commit | e345f0896fcf981a390062f28aeb2bc70839cc91 (patch) | |
| tree | a4ee9f2dbef7361f41c6502b2bda23cfb0137c86 | |
| parent | 68898bbda5cbf2e4a702d467ce7b56dddc8e9ece (diff) | |
qcacmn: Free htc_messages when callback missing
When an htc_endpoint doesn't have a callback registered,
free the message to avoid a memory leak.
Change-Id: I4dafdef4de892531bb2935befaa9c7c5d63cbcf8
CRs-Fixed: 2002277
| -rw-r--r-- | htc/htc_recv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/htc/htc_recv.c b/htc/htc_recv.c index 4e6e6e2b95ad..c4593b2fb223 100644 --- a/htc/htc_recv.c +++ b/htc/htc_recv.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013-2016 The Linux Foundation. All rights reserved. + * Copyright (c) 2013-2017 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -114,6 +114,7 @@ static void do_recv_completion(HTC_ENDPOINT *pEndpoint, ("HTC ep %d has NULL recv callback on packet %p\n", pEndpoint->Id, pPacket)); + qdf_nbuf_free(pPacket->pPktContext); continue; } AR_DEBUG_PRINTF(ATH_DEBUG_RECV, |
