Skip to content

Commit

Permalink
fix memory leak (google#4126)
Browse files Browse the repository at this point in the history
  • Loading branch information
leeygang authored and aardappel committed Jan 3, 2017
1 parent 69dc71b commit fea6b52
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/idl_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1836,6 +1836,7 @@ CheckedError Parser::DoParse(const char *source, const char **include_paths,
source_ = cursor_ = source;
line_ = 1;
error_.clear();
field_stack_.clear();
builder_.Clear();
// Start with a blank namespace just in case this file doesn't have one.
namespaces_.push_back(new Namespace());
Expand Down

0 comments on commit fea6b52

Please sign in to comment.