diff options
author | 2003-03-18 23:34:23 -0700 | |
---|---|---|
committer | 2005-04-07 20:59:27 -0700 | |
commit | 616e161c24a676943df22b0c8e17a2c97bb10bee (patch) | |
tree | 9ed1494751592fbada861b548122ccefb59eb5ad /test-lexing.c | |
parent | Tokenization drops whitespace, but there is one area where it is (diff) | |
download | sparse-616e161c24a676943df22b0c8e17a2c97bb10bee.tar.gz sparse-616e161c24a676943df22b0c8e17a2c97bb10bee.tar.bz2 sparse-616e161c24a676943df22b0c8e17a2c97bb10bee.zip |
Fix fd leak in tokenization.
Diffstat (limited to 'test-lexing.c')
-rw-r--r-- | test-lexing.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test-lexing.c b/test-lexing.c index 4ed9066..e412e15 100644 --- a/test-lexing.c +++ b/test-lexing.c @@ -17,6 +17,7 @@ int main(int argc, char **argv) die("No such file: %s", argv[1]); token = tokenize(argv[1], fd, NULL); + close(fd); token = preprocess(token); while (!eof_token(token)) { |