summaryrefslogtreecommitdiff
path: root/libavutil
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2022-01-29 00:52:53 +0100
committerLynne <dev@lynne.ee>2022-01-29 00:53:35 +0100
commit265731f201f1dde0dfe2448ad21d8256c17a33e2 (patch)
tree446c695fb51badf3b36652de5786593570f4916d /libavutil
parent95f02e43e16f0fa2bb4c390da77718ee614f40dd (diff)
lavu/tx: reset subcontext pointer if initialization fails
Thanks to mkver for pointing this out.
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/tx.c2
1 files changed, 1 insertions, 1 deletions
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);