diff options
author | Linus Torvalds <torvalds@home.transmeta.com> | 2003-03-18 23:34:23 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 20:59:27 -0700 |
commit | 616e161c24a676943df22b0c8e17a2c97bb10bee (patch) | |
tree | 9ed1494751592fbada861b548122ccefb59eb5ad /test-parsing.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-parsing.c')
-rw-r--r-- | test-parsing.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test-parsing.c b/test-parsing.c index 3abcbfd..3ec8bbe 100644 --- a/test-parsing.c +++ b/test-parsing.c @@ -23,6 +23,7 @@ int main(int argc, char **argv) // Tokenize the input stream token = tokenize(argv[1], fd, NULL); + close(fd); // Pre-process the stream token = preprocess(token); |