media: vicodec: bugfix: free compressed_frame upon device release
Free compressed_frame buffer upon device release. Signed-off-by: Dafna Hirschfeld <dafna3@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
8eead25cbd
commit
a04a7a2108
|
@ -1628,6 +1628,7 @@ static int vicodec_release(struct file *file)
|
|||
v4l2_fh_del(&ctx->fh);
|
||||
v4l2_fh_exit(&ctx->fh);
|
||||
v4l2_ctrl_handler_free(&ctx->hdl);
|
||||
kvfree(ctx->state.compressed_frame);
|
||||
kfree(ctx);
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue