[FFmpeg-cvslog] lavu/tx: reset subcontext pointer if initialization fails

Lynne git at videolan.org
Sat Jan 29 01:53:47 EET 2022


ffmpeg | branch: master | Lynne <dev at lynne.ee> | Sat Jan 29 00:52:53 2022 +0100| [265731f201f1dde0dfe2448ad21d8256c17a33e2] | committer: Lynne

lavu/tx: reset subcontext pointer if initialization fails

Thanks to mkver for pointing this out.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=265731f201f1dde0dfe2448ad21d8256c17a33e2
---

 libavutil/tx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/tx.c b/libavutil/tx.c
index a299408ed4..a90ccffcc4 100644
--- a/libavutil/tx.c
+++ b/libavutil/tx.c
@@ -606,7 +606,7 @@ av_cold int ff_tx_init_subtx(AVTXContext *s, enum AVTXType type,
             break;
     }
 
-    av_free(sub);
+    av_freep(&s->sub);
 
 end:
     av_free(cd_matches);



More information about the ffmpeg-cvslog mailing list