#980 Fix memleak in og_cmd_get_modes()

Missing closedir() call.
master
OpenGnSys Support Team 2020-06-30 19:40:12 +02:00
parent 76c0a05f28
commit e54c5ca411
1 changed files with 1 additions and 0 deletions

View File

@ -882,6 +882,7 @@ static int og_cmd_get_modes(json_t *element, struct og_msg_params *params,
json_object_set_new(root, "modes", modes);
json_dump_callback(root, og_json_dump_clients, &og_buffer, 0);
json_decref(root);
closedir(d);
return 0;
}