From 5aca3c9d1c7e981006205c7d74bff7a4707a81e7 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Date: Tue, 3 Jun 2025 22:50:32 +0200 Subject: [PATCH 8/9] avcodec/hashtable: Only free buffer if there is buffer to free Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> --- libavcodec/hashtable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/hashtable.c b/libavcodec/hashtable.c index 0e9b3d88c2..0d5c816cd7 100644 --- a/libavcodec/hashtable.c +++ b/libavcodec/hashtable.c @@ -207,6 +207,6 @@ av_cold void ff_hashtable_freep(FFHashtableContext **ctx) { if (*ctx) { av_freep(&(*ctx)->table); + av_freep(ctx); } - av_freep(ctx); } -- 2.45.2