[FFmpeg-devel] [PATCH 2/4] fftools/textformat: remove noop free

Marvin Scholz epirat07 at gmail.com
Wed Jun 11 23:42:11 EEST 2025


The tctx->hash was freed already right before.
---
 fftools/textformat/avtextformat.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/fftools/textformat/avtextformat.c b/fftools/textformat/avtextformat.c
index f1811abb1c..fa5abce261 100644
--- a/fftools/textformat/avtextformat.c
+++ b/fftools/textformat/avtextformat.c
@@ -108,8 +108,6 @@ int avtext_context_close(AVTextFormatContext **ptctx)
 
     av_hash_freep(&tctx->hash);
 
-    av_hash_freep(&tctx->hash);
-
     if (tctx->formatter) {
         if (tctx->formatter->uninit)
             ret = tctx->formatter->uninit(tctx);
-- 
2.39.5 (Apple Git-154)



More information about the ffmpeg-devel mailing list