diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-10-08 15:40:02 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-02-27 07:20:59 +0100 |
commit | 69286f8cf93aeaa57f9dab2f1e3b797d73a0975a (patch) | |
tree | 37d4d26f1ba6bebe86bbdc924c34f56b7578d9c2 | |
parent | 9e950320e73a3ac649e1f025a1c28e57b7ca145b (diff) | |
download | ffmpeg-69286f8cf93aeaa57f9dab2f1e3b797d73a0975a.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>
(cherry picked from commit 616eb93a404c088635be74498ddb04072dfe1b90)
-rw-r--r-- | libavformat/dashdec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 8a4ec9b560..a8a3b76987 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c @@ -1156,6 +1156,7 @@ static int parse_manifest_adaptationset(AVFormatContext *s, const char *url, err: xmlFree(c->adaptionset_lang); + c->adaptionset_lang = NULL; return ret; } |