Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix leak of regex string representations
The lexer returns a copy of a regular expression's string representation which is then leaked during parsing. Since the only consumer of that copy makes a copy of the copy (makedfa via mkdfa), just return a pointer to the original string. Test with: valgrind --leak-check=full a.out '/123/; /456/' </dev/null Reported by Todd C. Miller.
- Loading branch information