mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
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:
parent
fc82551de5
commit
bd3fc9ca56
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue