diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-12-28 18:16:02 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-12-28 18:16:02 +0100 |
commit | beaea2de61c841ac3624ab9d6cd93f6bf2a76b66 (patch) | |
tree | e68253388729362a730b833bc5c88d77a926ebf6 /libavdevice/dv1394.c | |
parent | 3b1f747238d6ca4bfaeebf1ab68892fb029623d7 (diff) | |
download | ffmpeg-beaea2de61c841ac3624ab9d6cd93f6bf2a76b66.tar.gz |
avdevice/dv1394: Use av_freep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavdevice/dv1394.c')
-rw-r--r-- | libavdevice/dv1394.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/dv1394.c b/libavdevice/dv1394.c index c8241e33f2..833b65d0d0 100644 --- a/libavdevice/dv1394.c +++ b/libavdevice/dv1394.c @@ -206,7 +206,7 @@ static int dv1394_close(AVFormatContext * context) av_log(context, AV_LOG_ERROR, "Failed to munmap DV1394 ring buffer: %s\n", strerror(errno)); close(dv->fd); - av_free(dv->dv_demux); + av_freep(&dv->dv_demux); return 0; } |