Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parser leaks memory #5

Open
lucivpav opened this issue Jul 4, 2016 · 0 comments
Open

Parser leaks memory #5

lucivpav opened this issue Jul 4, 2016 · 0 comments
Labels

Comments

@lucivpav
Copy link
Owner

lucivpav commented Jul 4, 2016

==8506== HEAP SUMMARY:
==8506== in use at exit: 32 bytes in 2 blocks
==8506== total heap usage: 1,688 allocs, 1,686 frees, 728,278 bytes allocated
==8506==
==8506== 16 bytes in 1 blocks are definitely lost in loss record 2 of 2
==8506== at 0x4C2B0E0: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==8506== by 0xBA3626: Parser::DataTypeExpression(bool) (parser.cpp:519)
==8506== by 0xBA34E3: Parser::DeclVarStatementImpl(bool, bool) (parser.cpp:504)
==8506== by 0xBA324A: Parser::DeclVarStatement(bool) (parser.cpp:471)
==8506== by 0xBA3C02: Parser::DeclCallableStatement(Token::Type) (parser.cpp:582)
==8506== by 0xBA147D: Parser::MainDeclStatement(bool) (parser.cpp:107)
==8506== by 0xBA1338: Parser::DeclStatements(StatmList*&, bool, bool) (parser.cpp:87)
==8506== by 0xBA1140: Parser::BodyStatements(bool) (parser.cpp:65)
==8506== by 0xBA3E1A: Parser::getStatements() (parser.cpp:611)
==8506== by 0xBA74DE: main (sfe.cpp:191)
==8506==
==8506== LEAK SUMMARY:
==8506== definitely lost: 16 bytes in 1 blocks
==8506== indirectly lost: 0 bytes in 0 blocks
==8506== possibly lost: 0 bytes in 0 blocks
==8506== still reachable: 16 bytes in 1 blocks
==8506== suppressed: 0 bytes in 0 blocks

@lucivpav lucivpav added the bug label Jul 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant