[
https://issues.apache.org/jira/browse/AVRO-117?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Doug Cutting updated AVRO-117:
------------------------------
Status: Open (was: Patch Available)
Scott, this patch causes compilation to fail for me with:
{noformat}
/usr/bin/flex -oparser/lex.yy.cc parser/avro.l
g++ -Wall -Werror -g -Wno-unused -I./api -I./parser -I.
-isystem/usr/include/boost -c -o obj/lex.yy.o parser/lex.yy.cc
parser/avro.l: In member function 'virtual int yyFlexLexer::yylex()':
parser/avro.l:171: error: 'yy_flex_free' was not declared in this scope
make: *** [obj/lex.yy.o] Error 1
{noformat}
I have flex 2.5.35 installed.
> plug mem leak from flex parser for C++
> --------------------------------------
>
> Key: AVRO-117
> URL: https://issues.apache.org/jira/browse/AVRO-117
> Project: Avro
> Issue Type: Bug
> Components: c++
> Reporter: Scott Banachowski
> Assignee: Scott Banachowski
> Attachments: AVRO-117.patch
>
>
> Valgrind reports a leak coming from the flex parser generated code.
> The flex-generated lexer allocates memory to use for its state stack.
> Examining this code it is clear that once allocated, the stack is never
> freed. Since I cannot easily replace flex code, I inserted the code to free
> the stack as a lexer rule.
> Valgrind is happy with the result.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.