mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-20 21:00:41 +08:00
idcin: fix memleak
Found-by: valgrind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user