[vlc-devel] commit: FIx memleak. ( Rémi Duraffort )

git version control git at videolan.org
Fri Aug 15 00:10:35 CEST 2008


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Aug 15 00:05:49 2008 +0200| [f74112d6914db430781519f45314e60fa3909cdb] | committer: Rémi Duraffort 

FIx memleak.

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

 modules/audio_output/file.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/audio_output/file.c b/modules/audio_output/file.c
index b6046d2..65b0578 100644
--- a/modules/audio_output/file.c
+++ b/modules/audio_output/file.c
@@ -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 ) )




More information about the vlc-devel mailing list