diff --git a/src/util/virjson.c b/src/util/virjson.c index 8918bc7f0c2e55628543d802737984ebab81cd8d..2bb73242c2c098540d1b6a734f68d3a38ea125f3 100644 --- a/src/util/virjson.c +++ b/src/util/virjson.c @@ -1014,6 +1014,7 @@ cleanup: for (i = 0; i < parser.nstate; i++) { VIR_FREE(parser.state[i].key); } + VIR_FREE(parser.state); } VIR_DEBUG("result=%p", parser.head);