[vlc-commits] oldrc: fix leak
Rémi Denis-Courmont
git at videolan.org
Sun Jun 10 12:14:35 CEST 2018
vlc/vlc-3.0 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jun 9 16:29:41 2018 +0300| [2e555516d886a31ccdd0f7c2fb138347e901870d] | committer: Rémi Denis-Courmont
oldrc: fix leak
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=2e555516d886a31ccdd0f7c2fb138347e901870d
---
modules/control/oldrc.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/control/oldrc.c b/modules/control/oldrc.c
index 138fd21b32..0f56cb65d4 100644
--- a/modules/control/oldrc.c
+++ b/modules/control/oldrc.c
@@ -1129,7 +1129,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( val_name.psz_string );
goto out;
+ }
msg_rc( "+----[ %s ]", val_name.psz_string );
for ( int i = 0; i < val.p_list->i_count; i++ )
More information about the vlc-commits
mailing list