Fix memory leak on loading of users

If the new format users are loaded, the loaded JSON object was never
freed.
This commit is contained in:
Markus Mäkelä 2017-09-27 18:12:46 +03:00
parent 3922f7a901
commit 39c19e1bb9

View File

@ -290,6 +290,7 @@ static USERS* load_users(const char *fname)
{
/** New format users */
rval = users_from_json(json);
json_decref(json);
}
else
{