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:
Dafna Hirschfeld 2019-03-06 16:13:29 -05:00 committed by Mauro Carvalho Chehab
parent 8eead25cbd
commit a04a7a2108
1 changed files with 1 additions and 0 deletions

View File

@ -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;