mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
false-use-of-get_path() memleak fixes.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12891 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
@@ -1484,7 +1484,10 @@ mp_input_init(void) {
|
||||
if(!file)
|
||||
return;
|
||||
|
||||
if(! mp_input_parse_config(file)) {
|
||||
if( mp_input_parse_config(file)) {
|
||||
free(file); // release the buffer created by get_path()
|
||||
}
|
||||
else {
|
||||
// Try global conf dir
|
||||
file = MPLAYER_CONFDIR "/input.conf";
|
||||
if(! mp_input_parse_config(file))
|
||||
|
||||
Reference in New Issue
Block a user