Commit 0cf5e6b5 authored by Jacek Jendrzej's avatar Jacek Jendrzej Committed by Steven Liu

avformat/dashdec: Fix memleak when resolve_content_path

Can be reproduced with:  valgrind  --leak-check=full  -v ffmpeg -i
http://yt-dash-mse-test.commondatastorage.googleapis.com/media/motion-20120802-manifest.mpdReviewed-by: 's avatarSteven Liu <lq@onvideo.cn>
Signed-off-by: 's avatarSteven Liu <lq@chinaffmpeg.org>
parent 2f45378b
...@@ -754,9 +754,12 @@ static int resolve_content_path(AVFormatContext *s, const char *url, int *max_ur ...@@ -754,9 +754,12 @@ static int resolve_content_path(AVFormatContext *s, const char *url, int *max_ur
if (!(node = baseurl_nodes[rootId])) { if (!(node = baseurl_nodes[rootId])) {
continue; continue;
} }
if (ishttp(xmlNodeGetContent(node))) { text = xmlNodeGetContent(node);
if (ishttp(text)) {
xmlFree(text);
break; break;
} }
xmlFree(text);
} }
node = baseurl_nodes[rootId]; node = baseurl_nodes[rootId];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment