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

possible memory leak #62

Closed
monikasoni opened this issue May 12, 2018 · 1 comment
Closed

possible memory leak #62

monikasoni opened this issue May 12, 2018 · 1 comment

Comments

@monikasoni
Copy link

Performing fuzzy testing on libgraphqlparser. Libfuzzer and Valgrind complain of memory leaks. For an input file with content

START FILE

{d }#s
b{a }

END FILE

376 (48 direct, 328 indirect)
yy::GraphQLParserImpl::parse() (parser.ypp:336)
facebook::graphql::doParse(char const**, void*, bool)(GraphQLParser.cpp:24)

Probably parser trying to create new document for second line without deleting first one which was created for line1 "{d }#s".

@monikasoni
Copy link
Author

Fix mem leak when failure is set #63

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant