diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-01-10 17:26:03 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-01-10 17:26:03 +0100 |
commit | 36055aa8764510b3d1803a9ac304960685d385a9 (patch) | |
tree | e0dba044254a5d21290993b8e234b68d719f7cdd /libavformat | |
parent | 91da6b97c7fb13322faf3dc7f6f895a3e363cdee (diff) | |
download | ffmpeg-36055aa8764510b3d1803a9ac304960685d385a9.tar.gz |
idcin: fix memleak
Found-by: valgrind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/idcin.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/idcin.c b/libavformat/idcin.c index 6bda74c19a..237d6851dc 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) { |