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

Commit 2756ca39 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 4ba4bb61
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7151,7 +7151,7 @@ int msm_comm_set_color_format_constraints(struct msm_vidc_inst *inst,
		dprintk(VIDC_DBG, "Set color format constraint success\n");

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