You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
avcodec/hashtable: Only free buffer if there is buffer to free
Reviewed-by: Emma Worley <emma@emma.gg> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@ -207,6 +207,6 @@ av_cold void ff_hashtable_freep(FFHashtableContext **ctx)
|
|||||||
{
|
{
|
||||||
if (*ctx) {
|
if (*ctx) {
|
||||||
av_freep(&(*ctx)->table);
|
av_freep(&(*ctx)->table);
|
||||||
}
|
|
||||||
av_freep(ctx);
|
av_freep(ctx);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user