[vlc-devel] [PATCH 7/9] demux/playlist: xspf/parse_track_node: fix leak on subnode failure

Filip Roséen filip at atch.se
Thu May 18 12:08:25 CEST 2017


fixes: #18337
---
 modules/demux/playlist/xspf.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/demux/playlist/xspf.c b/modules/demux/playlist/xspf.c
index 0a723ad5f3..23fe25e129 100644
--- a/modules/demux/playlist/xspf.c
+++ b/modules/demux/playlist/xspf.c
@@ -406,6 +406,7 @@ static bool parse_track_node COMPLEX_INTERFACE
             if (!p_handler->pf_handler.cmplx(p_demux, p_new_node,
                                              p_xml_reader, p_handler->name)) {
                 input_item_node_Delete(p_new_node);
+                input_item_Release(p_new_input);
                 return false;
             }
 
-- 
2.12.2


More information about the vlc-devel mailing list