[vlc-devel] commit: Fix memleak in esp audio output. ( Rémi Duraffort )

git version control git at videolan.org
Thu Jul 31 11:43:01 CEST 2008


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Jul 31 11:46:19 2008 +0200| [2de5a8f49b5fd8ffed2919d665ccf744bb66a1aa]

Fix memleak in esp audio output.

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

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

diff --git a/modules/audio_output/esd.c b/modules/audio_output/esd.c
index d42940e..b56b99c 100644
--- a/modules/audio_output/esd.c
+++ b/modules/audio_output/esd.c
@@ -146,6 +146,7 @@ static int Open( vlc_object_t *p_this )
     {
         msg_Err( p_aout, "cannot open esound socket (format 0x%08x at %d Hz)",
                          p_sys->esd_format, p_aout->output.output.i_rate );
+        free( psz_server );
         free( p_sys );
         return VLC_EGENERIC;
     }
@@ -180,6 +181,7 @@ static int Open( vlc_object_t *p_this )
       / p_aout->output.output.i_bytes_per_frame
       / p_aout->output.output.i_rate;
 
+    free( psz_server );
     close( i_newfd );
     return VLC_SUCCESS;
 }




More information about the vlc-devel mailing list