Commit 80364a3c4b for ffmpeg
commit 80364a3c4b4bfe8353a9b03e06ec56995214d975
Author: Kacper Michajłow <kasper93@gmail.com>
Date: Fri Oct 16 17:27:40 2026 +0200
avformat/dashdec: free the content of BaseURL elements starting with a slash
resolve_content_path() only freed the content of the elements it rewrote.
Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c
index 5e8efbcc47..cf88d86b0a 100644
--- a/libavformat/dashdec.c
+++ b/libavformat/dashdec.c
@@ -846,6 +846,8 @@ static int resolve_content_path(AVFormatContext *s, const char *url, int *max_ur
xmlNodeSetContent(baseurl_nodes[i], escaped);
updated = 1;
xmlFree(escaped);
+ } else {
+ xmlFree(text);
}
}