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

Commit 77176857 authored by Gidon Studinski's avatar Gidon Studinski
Browse files

msm: ipa: bug fix for memory leak in add_mbim_hdr



bug fix for memory leak in teth_bridge.c, which was found in add_mbim_hdr.

Change-Id: I940e5d81e7e991aadf4c2b0bbb342cbbd23b9891
CRs-Fixed: 556881
Acked-by: default avatarYaniv Hasbani <yhasbani@qti.qualcomm.com>
Signed-off-by: default avatarGidon Studinski <gidons@codeaurora.org>
parent f5edc513
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -570,11 +570,9 @@ static int add_mbim_hdr(u16 mbim_stream_id)
	/* Save the header handle in order to delete it later */
	idx = teth_ctx->hdr_del->num_hdls++;
	teth_ctx->hdr_del->hdl[idx].hdl = mbim_hdr->hdr[0].hdr_hdl;

	kfree(mbim_hdr);
	TETH_DBG_FUNC_EXIT();

bail:
	kfree(mbim_hdr);
	return res;
}