]> git.sesse.net Git - vlc/commitdiff
FIx memleak.
authorRémi Duraffort <ivoire@videolan.org>
Thu, 14 Aug 2008 22:05:49 +0000 (00:05 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Thu, 14 Aug 2008 22:05:49 +0000 (00:05 +0200)
modules/audio_output/file.c

index b6046d292ede796cf889d7b2c6a675f92e78b2f9..65b0578b686c140f5492a4cfa2c9e19332dc9471 100644 (file)
@@ -192,8 +192,10 @@ static int Open( vlc_object_t * p_this )
         if( p_aout->output.p_sys->p_file != stdout )
             fclose( p_aout->output.p_sys->p_file );
         free( p_aout->output.p_sys );
+        free( psz_format );
         return VLC_EGENERIC;
     }
+    free( psz_format );
 
     p_aout->output.output.i_format = format_int[i];
     if ( AOUT_FMT_NON_LINEAR( &p_aout->output.output ) )