-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
bugSomething isn't workingSomething isn't working
Description
If an exception is thrown during parsing any memory allocated by the lexer is not deallocated. It's a pretty minor issue as leaked memory is minimal and it only occurs on bad execution paths.
See code parser.cpp:9293
int32_t parseProperty(const char *str, ParserBuilder *aParserBuilder, const std::string& xpath)
{
utap__scan_string(str); <--- If thrown here
int32_t res = parseProperty(aParserBuilder, xpath);
utap__delete_buffer(YY_CURRENT_BUFFER); <--- cleanup wont be called
return res;
}Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working