mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-28 09:08:04 +00:00
fix memory leak (#4126)
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
69dc71b5ed
commit
fea6b525ee
@@ -1836,6 +1836,7 @@ CheckedError Parser::DoParse(const char *source, const char **include_paths,
|
|||||||
source_ = cursor_ = source;
|
source_ = cursor_ = source;
|
||||||
line_ = 1;
|
line_ = 1;
|
||||||
error_.clear();
|
error_.clear();
|
||||||
|
field_stack_.clear();
|
||||||
builder_.Clear();
|
builder_.Clear();
|
||||||
// Start with a blank namespace just in case this file doesn't have one.
|
// Start with a blank namespace just in case this file doesn't have one.
|
||||||
namespaces_.push_back(new Namespace());
|
namespaces_.push_back(new Namespace());
|
||||||
|
|||||||
Reference in New Issue
Block a user