[vlc-commits] demux/playlist: xspf/parse_track_node: fix leak on subnode failure

Filip Roséen git at videolan.org
Thu May 18 18:09:07 CEST 2017


vlc | branch: master | Filip Roséen <filip at atch.se> | Thu May 18 12:08:25 2017 +0200| [a0a507326255e8e527aefa0e640e7f2bb507186c] | committer: Rémi Denis-Courmont

demux/playlist: xspf/parse_track_node: fix leak on subnode failure

fixes: #18337

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a0a507326255e8e527aefa0e640e7f2bb507186c
---

 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;
             }
 



More information about the vlc-commits mailing list