summaryrefslogtreecommitdiff
path: root/libavfilter/f_metadata.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2019-09-30 12:24:06 +0200
committerPaul B Mahol <onemda@gmail.com>2019-09-30 12:24:06 +0200
commita6e2cf5eb0444f90b6d979f999f32def0b52b17e (patch)
tree6efd1fcb353fc9fa0b2b28ed7ae019366b2c6523 /libavfilter/f_metadata.c
parent9c9d5bf257df6bbdf50da469706e326a79de2ae8 (diff)
downloadffmpeg-a6e2cf5eb0444f90b6d979f999f32def0b52b17e.tar.gz
avfilter/f_metadata: do not memleak expr
Diffstat (limited to 'libavfilter/f_metadata.c')
-rw-r--r--libavfilter/f_metadata.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/f_metadata.c b/libavfilter/f_metadata.c
index 97e5c669fe..2ed1393cba 100644
--- a/libavfilter/f_metadata.c
+++ b/libavfilter/f_metadata.c
@@ -283,6 +283,8 @@ static av_cold void uninit(AVFilterContext *ctx)
{
MetadataContext *s = ctx->priv;
+ av_expr_free(s->expr);
+ s->expr = NULL;
if (s->avio_context) {
avio_closep(&s->avio_context);
}