summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2020-06-30 19:40:12 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-06-30 19:40:12 +0200
commite54c5ca41178fc2de7363ee0c990ef27306643ac (patch)
tree57f4f61705dbee5e0bbd069757584be2b1e06cf8
parent76c0a05f28531bcab3f89a4dfccae4b9b8eaf72c (diff)
#980 Fix memleak in og_cmd_get_modes()
Missing closedir() call.
-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;
}