summaryrefslogtreecommitdiff
path: root/libavdevice
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-28 18:16:02 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-28 18:16:02 +0100
commitbeaea2de61c841ac3624ab9d6cd93f6bf2a76b66 (patch)
treee68253388729362a730b833bc5c88d77a926ebf6 /libavdevice
parent3b1f747238d6ca4bfaeebf1ab68892fb029623d7 (diff)
avdevice/dv1394: Use av_freep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/dv1394.c2
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;
}