diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-08-02 20:39:44 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-08-02 20:39:44 -0700 |
commit | 8cea1f0d96b63965ebf7fa9bf73f30237605c0e2 (patch) | |
tree | 21c8827179a6ee0348b52f1b1f0039a5b8ad3cd1 /pre-process.c | |
parent | Add DEBUG mode, which enables various expensive debug options (diff) | |
download | sparse-8cea1f0d96b63965ebf7fa9bf73f30237605c0e2.tar.gz sparse-8cea1f0d96b63965ebf7fa9bf73f30237605c0e2.tar.bz2 sparse-8cea1f0d96b63965ebf7fa9bf73f30237605c0e2.zip |
Don't free expressions after preprocessing
It used to be that we only had pre-processor expressions at that point,
but now that we can pre-process multiple files, we end up having
expressions of previous files too, and we mustn't free those..
There aren't enough pre-processor expressions around to be worth
worrying about the memory usage anyway.
Diffstat (limited to 'pre-process.c')
-rw-r--r-- | pre-process.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pre-process.c b/pre-process.c index 52dc100..6894f1d 100644 --- a/pre-process.c +++ b/pre-process.c @@ -1676,7 +1676,8 @@ struct token * preprocess(struct token *token) do_preprocess(&token); // Drop all expressions from pre-processing, they're not used any more. - clear_expression_alloc(); + // This is not true when we have multiple files, though ;/ + // clear_expression_alloc(); preprocessing = 0; return token; |