aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@home.transmeta.com>2003-03-18 23:34:23 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 20:59:27 -0700
commit616e161c24a676943df22b0c8e17a2c97bb10bee (patch)
tree9ed1494751592fbada861b548122ccefb59eb5ad /test-lexing.c
parentTokenization drops whitespace, but there is one area where it is (diff)
downloadsparse-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.c1
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)) {