summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/rest.c1
1 files changed, 1 insertions, 0 deletions
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;
}