MXS-2921: Fix memory leak in alter maxscale

The alteration of core parameters leaked the JSON object.
This commit is contained in:
Markus Mäkelä
2020-03-13 09:30:43 +02:00
parent 291d2e987f
commit 2eeb583245

View File

@ -3020,6 +3020,7 @@ bool runtime_alter_maxscale_from_json(json_t* new_json)
rval = false;
}
}
json_decref(old_json);
}
return rval;