[vlc-devel] [PATCH 5/9] demux/playlist: xspf: remove unnecessary FREENULL

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


As psz_value is already guaranteed to be NULL at the place of
expansion, the usage of FREENULL is redundant.
---
 modules/demux/playlist/xspf.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/modules/demux/playlist/xspf.c b/modules/demux/playlist/xspf.c
index 590da3a511..8f8826955b 100644
--- a/modules/demux/playlist/xspf.c
+++ b/modules/demux/playlist/xspf.c
@@ -702,7 +702,6 @@ static bool parse_extension_node COMPLEX_INTERFACE
                 psz_value = strdup(name);
                 if (unlikely(!psz_value))
                 {
-                    FREENULL(psz_value);
                     if (b_release_input_item) input_item_Release(p_new_input);
                     return false;
                 }
-- 
2.12.2


More information about the vlc-devel mailing list