[vlc-devel] commit: Memleaks in Equalizer callback and Mac OS X audio module. ( Derk-Jan Hartman )

git version control git at videolan.org
Thu May 28 15:42:17 CEST 2009


vlc | branch: 1.0-bugfix | Derk-Jan Hartman <hartman at videolan.org> | Thu May 28 15:41:31 2009 +0200| [1d3b0ce24c9de1a35ca96addfffa2cd25ccd30fb] | committer: Derk-Jan Hartman 

Memleaks in Equalizer callback and Mac OS X audio module.

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

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

diff --git a/modules/audio_filter/equalizer.c b/modules/audio_filter/equalizer.c
index 33b6469..ed9df4d 100644
--- a/modules/audio_filter/equalizer.c
+++ b/modules/audio_filter/equalizer.c
@@ -531,6 +531,7 @@ static int PresetCallback( vlc_object_t *p_this, char const *psz_cmd,
                     free( psz_newbands );
                     return VLC_ENOMEM;
                 }
+                free( psz_newbands );
                 psz_newbands = psz;
             }
             if( p_sys->b_first == false )
diff --git a/modules/audio_output/auhal.c b/modules/audio_output/auhal.c
index 1effe5b..58b25f0 100644
--- a/modules/audio_output/auhal.c
+++ b/modules/audio_output/auhal.c
@@ -993,6 +993,7 @@ static void Probe( aout_instance_t * p_aout )
         if( !AudioDeviceHasOutput( p_devices[i]) )
         {
             msg_Dbg( p_aout, "this device is INPUT only. skipping..." );
+            free( psz_name );
             continue;
         }
 




More information about the vlc-devel mailing list