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

Commit 4bf21681 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ipa: bug fix for memory leak in add_mbim_hdr"

parents c7248225 77176857
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -569,11 +569,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;
}