X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=lib%2Fjson.c;h=8fd9c3a7a5e488397bbc5ac0885373eda02ec367;hb=abaad8cf1b5089e17a4af0ab1ff644bfcf63cad9;hp=0339a368d960268981810677f1f0d2bd913d197f;hpb=36d802ae1fd61d5ae3bfa1b114b8f3a911d987e5;p=openvswitch diff --git a/lib/json.c b/lib/json.c index 0339a368..8fd9c3a7 100644 --- a/lib/json.c +++ b/lib/json.c @@ -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;