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: Qiwei Liu <qiweil@codeaurora.org>
This commit is contained in:
Qiwei Liu 2019-11-25 14:13:42 +08:00 • committed by Gerrit - the friendly Code Review server
commit bd3fc9ca56

View file

@ -7049,7 +7049,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;
}