livehttp: free p_sys->p_seglens if str_format_time fails
authorIlkka Ollakka <ileoo@videolan.org>
Sun, 17 Mar 2013 10:51:19 +0000 (12:51 +0200)
committerIlkka Ollakka <ileoo@videolan.org>
Sun, 17 Mar 2013 11:29:12 +0000 (13:29 +0200)
modules/access_output/livehttp.c

index 90f3bc4..2572324 100644 (file)
@@ -204,6 +204,7 @@ static int Open( vlc_object_t *p_this )
         free( psz_idx );
         if ( !psz_tmp )
         {
+            free( p_sys->p_seglens );
             free( p_sys );
             return VLC_ENOMEM;
         }