mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 07:31:22 +01:00
avfilter picture pool: double free hotfix
This fix introduces a small memleak Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
6cbe81999b
commit
90c6963dae
1 changed files with 3 additions and 2 deletions
|
|
@ -182,10 +182,11 @@ void avfilter_link_free(AVFilterLink **link)
|
|||
|
||||
av_freep(&picref->audio);
|
||||
av_freep(&picref->video);
|
||||
av_freep(&picref);
|
||||
av_freep(&(*link)->pool->pic[i]);
|
||||
}
|
||||
}
|
||||
av_freep(&(*link)->pool);
|
||||
(*link)->pool->count = 0;
|
||||
// av_freep(&(*link)->pool);
|
||||
}
|
||||
av_freep(link);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue