preproc.c: Fix SIGSEV on missed %endm

In case if EOF is reached (or due to any
other case pp_cleanup is being called) we
do free "defining" macro but forgot to set
pointer to NULL itself which leads to attempt
to free memory again for this macro on further
pp_cleanup calls.
This commit is contained in:
Cyrill Gorcunov 2010-02-14 17:19:38 +03:00
parent bebf0d2157
commit a327c65d28

View file

@ -4804,6 +4804,7 @@ static void pp_cleanup(int pass)
}
free_mmacro(defining);
defining = NULL;
}
while (cstk)
ctx_pop();