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

Commit 69c6d9e4 authored by Krishnankutty Kolathappilly's avatar Krishnankutty Kolathappilly Committed by Gerrit - the friendly Code Review server
Browse files

msm: cpp: Fix mem leak when frame is dropped



When a frame is dropped or during error scenarios frame info
structure is not de-allocated. The fix is to free the frame info
structure after the payload is de-allocated.

Change-Id: Ia804364a01b6bda1d525cd8cc265ecd1aa0b229f
Signed-off-by: default avatarKrishnankutty Kolathappilly <kkolatha@codeaurora.org>
parent e47fb020
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1717,6 +1717,7 @@ phyaddr_err:
			&buff_mgr_info);
frame_msg_err:
	kfree(cpp_frame_msg);
	kfree(new_frame);
	return rc;
}