json: Fix memory leak when nesting depth is exceeded.
authorBen Pfaff <blp@nicira.com>
Mon, 1 Feb 2010 22:57:27 +0000 (14:57 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 2 Feb 2010 23:21:09 +0000 (15:21 -0800)
commitd951f1c78c2131fd466abec3c800fff7a4108c65
treec05442aa1173b53075ca22e549614ec2f36a3596
parentf6b60e026eed9dcc68850c6f9e3b393e6a18fd49
json: Fix memory leak when nesting depth is exceeded.

This is probably not an important memory leak, since it is only on a rare
error path, but it is best to fix it anyway.

Found with valgrind.
lib/json.c