Commit fea6b525 authored by Yonggang Li's avatar Yonggang Li Committed by Wouter van Oortmerssen

fix memory leak (#4126)

parent 69dc71b5
......@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment