aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpphash.c
diff options
context:
space:
mode:
authorPhilippe De Muyter <phdm@macqel.be>2000-04-05 07:15:09 +0200
committerZack Weinberg <zack@gcc.gnu.org>2000-04-05 05:15:09 +0000
commit05ecd0e9ab53c460dd64ea7c2c2403854d244874 (patch)
tree7a93de3cd2c1dddc6abadf6027ce2065f87d9540 /gcc/cpphash.c
parenta70902c59f79e4e1a855389e200d0272d47ebaa3 (diff)
downloadgcc-05ecd0e9ab53c460dd64ea7c2c2403854d244874.zip
gcc-05ecd0e9ab53c460dd64ea7c2c2403854d244874.tar.gz
gcc-05ecd0e9ab53c460dd64ea7c2c2403854d244874.tar.bz2
cpphash.c (_cpp_free_definition): Test argnames, not nargs >= 0, before freeing argnames.
2000-04-04 Philippe De Muyter <phdm@macqel.be> * cpphash.c (_cpp_free_definition): Test argnames, not nargs >= 0, before freeing argnames. * cpplib.c (do_ifndef): Cast return value of xstrdup. From-SVN: r32924
Diffstat (limited to 'gcc/cpphash.c')
-rw-r--r--gcc/cpphash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cpphash.c b/gcc/cpphash.c
index 0eadc9a..ac8fbcb 100644
--- a/gcc/cpphash.c
+++ b/gcc/cpphash.c
@@ -256,7 +256,7 @@ _cpp_free_definition (d)
nextap = ap->next;
free (ap);
}
- if (d->nargs >= 0)
+ if (d->argnames)
free (d->argnames);
free (d);
}