summaryrefslogtreecommitdiffstats
path: root/libavcodec/v4l2_m2m.c
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2018-01-21 22:59:29 +0000
committerMark Thompson <sw@jkqxz.net>2018-01-21 23:02:16 +0000
commitbda5ad305e907d6e5eaa6abbb1b3bc1590ec20d8 (patch)
tree50a4420a13a522567ccb463220cf4455f04c0e16 /libavcodec/v4l2_m2m.c
parent9bba10c174c893b08b036898a522ed6dad1d3660 (diff)
downloadffmpeg-streaming-bda5ad305e907d6e5eaa6abbb1b3bc1590ec20d8.zip
ffmpeg-streaming-bda5ad305e907d6e5eaa6abbb1b3bc1590ec20d8.tar.gz
v4l2_m2m: Fix free of the wrong pointer in an error path
Fixes CIDs #1427821 and #1427822.
Diffstat (limited to 'libavcodec/v4l2_m2m.c')
-rw-r--r--libavcodec/v4l2_m2m.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/v4l2_m2m.c b/libavcodec/v4l2_m2m.c
index fd989ce..427e165 100644
--- a/libavcodec/v4l2_m2m.c
+++ b/libavcodec/v4l2_m2m.c
@@ -390,7 +390,7 @@ int ff_v4l2_m2m_create_context(AVCodecContext *avctx, V4L2m2mContext **s)
priv->context_ref = av_buffer_create((uint8_t *) *s, sizeof(V4L2m2mContext),
&v4l2_m2m_destroy_context, NULL, 0);
if (!priv->context_ref) {
- av_free(s);
+ av_freep(s);
return AVERROR(ENOMEM);
}
OpenPOWER on IntegriCloud