Fix json parsing
This commit is contained in:
parent
fcd96e0ec4
commit
3a54e8d84c
@ -408,6 +408,8 @@ void JsonParser::parse(char * json_in) {
|
||||
// TODO error checking
|
||||
if (_token_len >= 0) {
|
||||
postProcess(json_len);
|
||||
} else {
|
||||
this->free(); // invalid JSON
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user