Browse Source

uci: properly close input before exit

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Hans Dedecker 9 years ago
parent
commit
f34c2de12f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      cli.c

+ 1 - 0
cli.c

@@ -687,6 +687,7 @@ int main(int argc, char **argv)
 				break;
 			case 'f':
 				if (input != stdin) {
+					fclose(input);
 					perror("uci");
 					return 1;
 				}