ffmpeg | branch: master | Lynne <d...@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);

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to