aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-19 07:01:30 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-27 07:20:59 +0100
commit92898d7536b64d9e09da9a71d3322b65b5b04ef9 (patch)
treec876e8a97d4a75eafdf91736f956dc1e5204fe56
parentee0bf1d5f8794423dc3086c39b7e22ded65d5f31 (diff)
downloadffmpeg-92898d7536b64d9e09da9a71d3322b65b5b04ef9.tar.gz
avformat/dashdec: Fix leak of representation languages
These languages are normally freed after having been added as metadata to their respective AVStreams. Yet if one never reaches said point, they leak. This can happen as a result of an error when reading the header or as a result of refreshing the manifests. Reviewed-by: Steven Liu <lq@chinaffmpeg.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> (cherry picked from commit f1c3c173c9408085d7b26f3bdd264b426bca314a)
-rw-r--r--libavformat/dashdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c
index 5b1ade094f..56babba075 100644
--- a/libavformat/dashdec.c
+++ b/libavformat/dashdec.c
@@ -359,6 +359,7 @@ static void free_representation(struct representation *pls)
}
av_freep(&pls->url_template);
+ av_freep(&pls->lang);
av_freep(&pls);
}