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

Commit 135e4eb7 authored by Deva Ramasubramanian's avatar Deva Ramasubramanian
Browse files

msm: vidc: Free memory allocated to keep track of buffer ownership



Memory for free_output_indices and free_input_indices was never freed.
This commit kfrees the memory as part of venc_close().

CRs-Fixed: 631998
Change-Id: Iae28a1266bdf78445c1a936721d9901c9fa0f285
Signed-off-by: default avatarDeva Ramasubramanian <dramasub@codeaurora.org>
parent 5d2fc27d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -446,6 +446,8 @@ static long venc_close(struct v4l2_subdev *sd, void *arg)
	if (rc)
		WFD_MSG_WARN("Failed to close vidc context\n");

	kfree(inst->free_output_indices.bitmap);
	kfree(inst->free_input_indices.bitmap);
	kfree(inst);
	sd->dev_priv = inst = NULL;
venc_close_fail: