MXS-1220: Fix memory leaks

Some of the JSON objects created in the diagnostic functions leaked
memory.
This commit is contained in:
Markus Mäkelä
2017-04-19 19:49:12 +03:00
committed by Markus Mäkelä
parent ebc9e4bd3b
commit bc3cfe0221
13 changed files with 20 additions and 18 deletions

View File

@ -1603,7 +1603,7 @@ static json_t* diagnostics(MXS_ROUTER *router)
json_object_set_new(slave, "mode", json_string(mode));
json_array_append(arr, slave);
json_array_append_new(arr, slave);
}
spinlock_release(&router_inst->lock);