summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYonggang Li <leeygang@gmail.com>2017-01-03 13:54:15 -0800
committerWouter van Oortmerssen <aardappel@gmail.com>2017-01-03 13:54:15 -0800
commitfea6b525ee57bf61d307abc16ade8d9041a3a01d (patch)
tree798615634eb0a5d549e8af72237f8f4734da0db6
parent69dc71b5ed0382e325f96a9bdef057fca94b1c77 (diff)
downloadflatbuffers-fea6b525ee57bf61d307abc16ade8d9041a3a01d.tar.gz
flatbuffers-fea6b525ee57bf61d307abc16ade8d9041a3a01d.tar.bz2
flatbuffers-fea6b525ee57bf61d307abc16ade8d9041a3a01d.zip
fix memory leak (#4126)
-rw-r--r--src/idl_parser.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/idl_parser.cpp b/src/idl_parser.cpp
index ef6e1f51..81e7fe2e 100644
--- a/src/idl_parser.cpp
+++ b/src/idl_parser.cpp
@@ -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());