MXS-2639: Fix maxinfo memory leak

The JSON version didn't call json_decref on the object it created.
This commit is contained in:
Markus Mäkelä 2019-10-07 12:28:31 +03:00 committed by Johan Wikman
parent c609042874
commit d6eb73c9ee

View File

@ -245,4 +245,6 @@ void ResultSet::write_as_json(DCB* dcb)
char* js = json_dumps(arr, JSON_INDENT(4));
dcb_printf(dcb, "%s", js);
MXS_FREE(js);
json_decref(arr);
}