[vlc-commits] demux/playlist: xspf: remove unnecessary FREENULL

Filip Roséen git at videolan.org
Thu May 18 18:08:58 CEST 2017


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

demux/playlist: xspf: remove unnecessary FREENULL

As psz_value is already guaranteed to be NULL at the place of
expansion, the usage of FREENULL is redundant.

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

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

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



More information about the vlc-commits mailing list