[vlc-devel] [PATCH 8/9] dbus: fix memleak

Mirsal Ennaime mirsal at mirsal.fr
Tue Feb 8 22:36:03 CET 2011


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

diff --git a/modules/control/dbus/dbus.c b/modules/control/dbus/dbus.c
index 0d5e7e7..c78ac33 100644
--- a/modules/control/dbus/dbus.c
+++ b/modules/control/dbus/dbus.c
@@ -963,6 +963,8 @@ static int AllCallback( vlc_object_t *p_this, const char *psz_var,
         if( VLC_SUCCESS != i_res )
         {
             vlc_mutex_unlock( &p_intf->p_sys->lock );
+            free( info );
+
             return i_res;
         }
     }
-- 
1.7.1




More information about the vlc-devel mailing list