summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvectronic <[email protected]>2019-09-16 11:44:27 +0100
committerSteven Liu <[email protected]>2019-09-23 10:06:08 +0800
commit598962cd3a68e30662cfbd5e053eef85d2ee3a8a (patch)
tree49f08b926cb2e8303ee508264e31e4710c63c805
parent4ba45a95df1b3b38fe69e7e462d1c7c564ac395f (diff)
avformat/dashdec: fix pointer being freed was not allocated
prevent attempt to call xmlFree if val was not allocated fixes: 8135 Reviewed-by: Steven Liu <[email protected]> Signed-off-by: vectronic <[email protected]>
-rw-r--r--libavformat/dashdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c
index 8c0a9b0102..738bfeaefb 100644
--- a/libavformat/dashdec.c
+++ b/libavformat/dashdec.c
@@ -1203,6 +1203,7 @@ static int parse_programinformation(AVFormatContext *s, xmlNodePtr node)
}
node = xmlNextElementSibling(node);
xmlFree(val);
+ val = NULL;
}
return 0;
}