summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-10-08 15:40:02 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-10-08 15:40:02 +0200
commit616eb93a404c088635be74498ddb04072dfe1b90 (patch)
tree5a870d840eb83955ddaa07ddfb7cd423f9c69b74
parente9521d9298a4f88c4a14bda1938afc0967f30a47 (diff)
downloadffmpeg-616eb93a404c088635be74498ddb04072dfe1b90.tar.gz
avformat/dashdec: Reset pointer to NULL after freeing it
This is currently safe here, because the effective lifetime of adaptionset_lang is parse_manifest_adaptationset() (i.e. the pointer gets overwritten each time on entry to the function and gets freed before exiting the function), but it is nevertheless safer to reset the pointer. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
-rw-r--r--libavformat/dashdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c
index 42ea74635b..c28bb07f44 100644
--- a/libavformat/dashdec.c
+++ b/libavformat/dashdec.c
@@ -1146,6 +1146,7 @@ static int parse_manifest_adaptationset(AVFormatContext *s, const char *url,
err:
xmlFree(c->adaptionset_lang);
+ c->adaptionset_lang = NULL;
return ret;
}