summaryrefslogtreecommitdiffstats
path: root/input/input.c
diff options
context:
space:
mode:
Diffstat (limited to 'input/input.c')
-rw-r--r--input/input.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/input/input.c b/input/input.c
index 5287dee7b1..271b8d102f 100644
--- a/input/input.c
+++ b/input/input.c
@@ -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))