Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-01-10 20:26:03 +0400
committerMichael Niedermayer <michaelni@gmx.at>2013-01-10 20:26:03 +0400
commit36055aa8764510b3d1803a9ac304960685d385a9 (patch)
treee0dba044254a5d21290993b8e234b68d719f7cdd /libavformat/idcin.c
parent91da6b97c7fb13322faf3dc7f6f895a3e363cdee (diff)
idcin: fix memleak
Found-by: valgrind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/idcin.c')
-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) {