Be sure to read its dedicated section: Flex & Bison.
Memory leaks in the parser during error recovery
The generated parser from current versions of Bison does not offer a
means to reclaim the memory of the symbols that are thrown away. Hence,
memory leaks won't be tested on invalid input.
Memory leaks in the standard containers
Voir Valgrind, for a pointer to the explanation and solution.