Commit 36055aa8 authored by Michael Niedermayer's avatar Michael Niedermayer

idcin: fix memleak

Found-by: valgrind
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 91da6b97
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment