Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 47f5ae79 authored by Dundi Raviteja's avatar Dundi Raviteja
Browse files

wlan: Fix memory leak while processing smd response

Memory allocated for the list in WCTS_smd_resp_process
to process smd response is not freed in its processing
callback resulting in memory leak.

To address this free the allocated list in processing callback.

Change-Id: I9ede69d49bad8ba9e2d22756844e222d4508eda3
CRs-Fixed: 2730281
parent bfcc1c4f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -256,6 +256,7 @@ WCTS_PALReadCallback
      buffer = msg->buffer;
      packet_size = msg->buf_len;
      bytes_read = msg->buf_len;
      wpalMemoryFree(msg);
#else
      /* check the length of the next packet */
      packet_size = smd_cur_packet_size(pWCTSCb->wctsChannel);