diff options
Diffstat (limited to 'gcc/cppmacro.c')
-rw-r--r-- | gcc/cppmacro.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/cppmacro.c b/gcc/cppmacro.c index ade67d7..3c9ffb9 100644 --- a/gcc/cppmacro.c +++ b/gcc/cppmacro.c @@ -404,6 +404,18 @@ _cpp_free_definition (h) { if (h->type == T_MACRO) free ((PTR) h->value.expansion); + else if (h->type == T_ASSERTION) + { + struct answer *temp, *next; + + for (temp = h->value.answers; temp; temp = next) + { + next = temp->next; + FREE_ANSWER (temp); + } + } + + h->type = T_VOID; h->value.expansion = NULL; } |