X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fjson.c;h=10fa3c121011a88876a5b43097b70de89a608572;hb=3bcf3e33e9cfb7fd837086bfa8e627110d84dce8;hp=0339a368d960268981810677f1f0d2bd913d197f;hpb=36d802ae1fd61d5ae3bfa1b114b8f3a911d987e5;p=openvswitch diff --git a/lib/json.c b/lib/json.c index 0339a368..10fa3c12 100644 --- a/lib/json.c +++ b/lib/json.c @@ -832,7 +832,7 @@ json_string_unescape(const char *in, size_t in_len, char **outp) while (in < end) { if (*in == '"') { ds_clear(&out); - ds_put_cstr(&out, "quoted string may not include unescape \""); + ds_put_cstr(&out, "quoted string may not include unescaped \""); goto exit; } if (*in != '\\') { @@ -1213,6 +1213,7 @@ json_parser_push(struct json_parser *p, p->parse_state = new_state; return node; } else { + json_destroy(new_json); json_error(p, "input exceeds maximum nesting depth %d", JSON_MAX_HEIGHT); return NULL;