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

git version control git at videolan.org
Sat Nov 22 19:12:44 CET 2008


vlc | branch: 0.9-bugfix | Christophe Mutricy <xtophe at videolan.org> | Sat Nov 22 16:17:23 2008 +0000| [0a82b84517198ca4f63e1d74b4c74744f210ed19] | committer: Christophe Mutricy 

Fix memleak

Closes #2307
(cherry picked from commit 6b176dfcf7b7c2bcbaf86846b76ac28c2dd107e4)

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

 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 1652c3a..a321114 100644
--- a/modules/control/rc.c
+++ b/modules/control/rc.c
@@ -1775,6 +1775,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