1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

avdevice/dv1394: Use av_freep() to avoid leaving stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-12-28 18:16:02 +01:00
parent 3b1f747238
commit beaea2de61

View File

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