[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bison 1.30: double free of pointer
From: |
Andreas Schwab |
Subject: |
Bison 1.30: double free of pointer |
Date: |
11 Dec 2001 16:37:32 +0100 |
User-agent: |
Gnus/5.090003 (Oort Gnus v0.03) Emacs/21.1.30 |
This fixes a double free of a pointer. The elements of the tags array are
copied from bucket.tag, which is freed in free_symtab.
Andreas.
2001-12-11 Andreas Schwab <address@hidden>
* src/reduce.c (reduce_grammar_tables): Don't free elements of
tags.
--- reduce.c 2001/12/11 15:29:15 1.1
+++ reduce.c 2001/12/11 15:29:27
@@ -357,10 +357,6 @@
sprec[n] = sprec[i];
tags[n] = tags[i];
}
- else
- {
- free (tags[i]);
- }
}
/* Replace all symbol numbers in valid data structures. */
--
Andreas Schwab "And now for something
address@hidden completely different."
SuSE Labs, SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
- Bison 1.30: double free of pointer,
Andreas Schwab <=