aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-01-10 17:26:03 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-01-10 17:26:03 +0100
commit36055aa8764510b3d1803a9ac304960685d385a9 (patch)
treee0dba044254a5d21290993b8e234b68d719f7cdd /libavformat
parent91da6b97c7fb13322faf3dc7f6f895a3e363cdee (diff)
downloadffmpeg-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.c1
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) {