Skip to content

Commit 60ba071

Browse files
dota17baylesj
authored andcommitted
pop the root node after readValue()
1 parent 3c32dca commit 60ba071

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib_json/json_reader.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1048,6 +1048,7 @@ bool OurReader::parse(const char* beginDoc,
10481048
nodes_.push(&root);
10491049

10501050
bool successful = readValue();
1051+
nodes_.pop();
10511052
Token token;
10521053
skipCommentTokens(token);
10531054
if (features_.failIfExtra_) {

0 commit comments

Comments
 (0)