[vlc-commits] b4s: memory leak

Rémi Denis-Courmont git at videolan.org
Tue Nov 18 22:36:19 CET 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Nov 18 23:36:12 2014 +0200| [80bd0c5d39ba8ac1c52f747da6d2b18a4e20ff7f] | committer: Rémi Denis-Courmont

b4s: memory leak

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

 modules/demux/playlist/ram.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/demux/playlist/ram.c b/modules/demux/playlist/ram.c
index 8c8de71..697199b 100644
--- a/modules/demux/playlist/ram.c
+++ b/modules/demux/playlist/ram.c
@@ -439,7 +439,10 @@ static void ParseClipInfo( const char *psz_clipinfo, char **ppsz_artist, char **
             *( strchr( psz_suboption, '=' ) ) = '\0';
         }
         else
+        {
+            free( psz_suboption );
             break;
+        }
         /* Put into args */
         if( !strcmp( psz_param, "artist name" ) )
             *ppsz_artist = decode_URI_duplicate( psz_value );



More information about the vlc-commits mailing list