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

Commit 0310eb82 authored by Qiwei Liu's avatar Qiwei Liu
Browse files

msm: vidc: fix memory leak when set color format



When set color format constraints, one buffer is not
correctly freed, fix it.

Change-Id: Iad497f03981653a7f28524f1d9e4218f706dcca1
Signed-off-by: default avatarQiwei Liu <qiweil@codeaurora.org>
parent ddb714d3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7114,7 +7114,7 @@ int msm_comm_set_color_format_constraints(struct msm_vidc_inst *inst,
		s_vpr_h(inst->sid, "Set color format constraint success\n");

exit:
	if (!pconstraint)
	if (pconstraint)
		kfree(pconstraint);
	return rc;
}