Commit 6cdf1f5a authored by Rémi Duraffort's avatar Rémi Duraffort

Avoid potential memleak.

(cherry picked from commit a1af59d6)
parent 09780abc
...@@ -1101,6 +1101,7 @@ void var_OptionParse( vlc_object_t *p_obj, const char *psz_option, ...@@ -1101,6 +1101,7 @@ void var_OptionParse( vlc_object_t *p_obj, const char *psz_option,
{ {
msg_Err( p_obj, "unsafe option \"%s\" has been ignored for " msg_Err( p_obj, "unsafe option \"%s\" has been ignored for "
"security reasons", psz_name ); "security reasons", psz_name );
free( psz_name );
return; return;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment