From e54c5ca41178fc2de7363ee0c990ef27306643ac Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Tue, 30 Jun 2020 19:40:12 +0200 Subject: #980 Fix memleak in og_cmd_get_modes() Missing closedir() call. --- src/rest.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/rest.c b/src/rest.c index 2a90028..8c5c6da 100644 --- a/src/rest.c +++ b/src/rest.c @@ -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; } -- cgit v1.2.3-18-g5258