[FFmpeg-cvslog] idcin: fix memleak
Michael Niedermayer
git at videolan.org
Thu Jan 10 17:30:34 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Jan 10 17:26:03 2013 +0100| [36055aa8764510b3d1803a9ac304960685d385a9] | committer: Michael Niedermayer
idcin: fix memleak
Found-by: valgrind
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=36055aa8764510b3d1803a9ac304960685d385a9
---
libavformat/idcin.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/idcin.c b/libavformat/idcin.c
index 6bda74c..237d685 100644
--- a/libavformat/idcin.c
+++ b/libavformat/idcin.c
@@ -313,6 +313,7 @@ static int idcin_read_packet(AVFormatContext *s,
return ret;
else if (ret != chunk_size) {
av_log(s, AV_LOG_ERROR, "incomplete packet\n");
+ av_free_packet(pkt);
return AVERROR(EIO);
}
if (command == 1) {
More information about the ffmpeg-cvslog
mailing list