]> git.sesse.net Git - vlc/commitdiff
Fix memory leak (cid #1048910)
authorRémi Duraffort <ivoire@videolan.org>
Wed, 28 Aug 2013 18:15:12 +0000 (20:15 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 29 Aug 2013 12:18:56 +0000 (14:18 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/codec/cc.c

index 8863f1c6f5aa40afc37aa01b45729bc9251ab96c..7931e31c93e3f464cfab7cc1384ee4f8146edd96 100644 (file)
@@ -305,6 +305,8 @@ static subpicture_t *Subtitle( decoder_t *p_dec, char *psz_subtitle, char *psz_h
     if( i_pts <= VLC_TS_INVALID )
     {
         msg_Warn( p_dec, "subtitle without a date" );
+        free( psz_subtitle );
+        free( psz_html );
         return NULL;
     }