[vlc-commits] oldrc: fix leak
Rémi Denis-Courmont
git at videolan.org
Sun Jun 10 12:11:21 CEST 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jun 9 16:29:41 2018 +0300| [1fd0844ee78b78ee1276ccd6e1d94e882047b90b] | committer: Rémi Denis-Courmont
oldrc: fix leak
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1fd0844ee78b78ee1276ccd6e1d94e882047b90b
---
modules/control/oldrc.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/control/oldrc.c b/modules/control/oldrc.c
index c2d85f9bfa..4a5fdfc0d5 100644
--- a/modules/control/oldrc.c
+++ b/modules/control/oldrc.c
@@ -1128,7 +1128,10 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
if ( var_Change( p_input, psz_variable,
VLC_VAR_GETCHOICES, &val, &text ) < 0 )
+ {
+ free( name );
goto out;
+ }
msg_rc( "+----[ %s ]", val_name.psz_string );
for ( int i = 0; i < val.i_count; i++ )
More information about the vlc-commits
mailing list