diff options
author | albeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-06-19 16:41:38 +0000 |
---|---|---|
committer | albeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-06-19 16:41:38 +0000 |
commit | d7baf0c2ae267e9f0749df9bcfce1a712d8abdb3 (patch) | |
tree | 36d3e5b29fb9fc260ba614b3599861c5df278aa9 | |
parent | 8753c37118044bd7736e429c35937ad846cccc04 (diff) |
10L forgot to close input.conf fd
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6464 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | input/input.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/input/input.c b/input/input.c index 0c6aff2210..55bb6ad979 100644 --- a/input/input.c +++ b/input/input.c @@ -1108,6 +1108,7 @@ mp_input_parse_config(char *file) { continue; mp_msg(MSGT_INPUT,MSGL_ERR,"Error while reading input config file %s : %s\n",file,strerror(errno)); mp_input_free_binds(binds); + close(fd); return 0; } else if(r == 0) eof = 1; @@ -1121,6 +1122,7 @@ mp_input_parse_config(char *file) { mp_msg(MSGT_INPUT,MSGL_INFO,"Input config file %s parsed : %d binds\n",file,n_binds); if(binds) cmd_binds = binds; + close(fd); return 1; } @@ -1179,6 +1181,7 @@ mp_input_parse_config(char *file) { if(! mp_input_get_input_from_name(name,keys)) { mp_msg(MSGT_INPUT,MSGL_ERR,"Unknown key '%s'\n",name); mp_input_free_binds(binds); + close(fd); return 0; } } @@ -1208,6 +1211,7 @@ mp_input_parse_config(char *file) { if(iter == buffer) { mp_msg(MSGT_INPUT,MSGL_ERR,"Buffer is too small for command %s\n",buffer); mp_input_free_binds(binds); + close(fd); return 0; } memmove(buffer,iter,end - iter); @@ -1232,6 +1236,7 @@ mp_input_parse_config(char *file) { } } mp_msg(MSGT_INPUT,MSGL_ERR,"What are we doing here ?\n"); + close(fd); return 0; } |