mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-25 04:19:05 +00:00
idcin: fix memleak
Found-by: valgrind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
91da6b97c7
commit
36055aa876
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user