[vlc-devel] commit: Fix memleak (Christophe Mutricy )

git version control git at videolan.org
Sat Nov 22 18:03:45 CET 2008


vlc | branch: master | Christophe Mutricy <xtophe at videolan.org> | Sat Nov 22 16:17:23 2008 +0000| [6b176dfcf7b7c2bcbaf86846b76ac28c2dd107e4] | committer: Christophe Mutricy 

Fix memleak

Closes #2307

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

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

diff --git a/modules/control/rc.c b/modules/control/rc.c
index 92f7202..3b8df65 100644
--- a/modules/control/rc.c
+++ b/modules/control/rc.c
@@ -1778,6 +1778,7 @@ static int VideoConfig( vlc_object_t *p_this, char const *psz_cmd,
                          VLC_VAR_GETLIST, &val, &text ) < 0 )
         {
             vlc_object_release( p_vout );
+            free( psz_value );
             return VLC_EGENERIC;
         }
 




More information about the vlc-devel mailing list