diff options
author | Mark Thompson <sw@jkqxz.net> | 2018-01-22 01:59:29 +0300 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2018-01-22 02:02:16 +0300 |
commit | bda5ad305e907d6e5eaa6abbb1b3bc1590ec20d8 (patch) | |
tree | 50a4420a13a522567ccb463220cf4455f04c0e16 /libavcodec/v4l2_m2m.c | |
parent | 9bba10c174c893b08b036898a522ed6dad1d3660 (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/v4l2_m2m.c b/libavcodec/v4l2_m2m.c index fd989ce601..427e165f58 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); } |