diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2020-06-30 19:40:12 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2020-06-30 19:40:12 +0200 |
commit | e54c5ca41178fc2de7363ee0c990ef27306643ac (patch) | |
tree | 57f4f61705dbee5e0bbd069757584be2b1e06cf8 /src | |
parent | 76c0a05f28531bcab3f89a4dfccae4b9b8eaf72c (diff) |
#980 Fix memleak in og_cmd_get_modes()
Missing closedir() call.
Diffstat (limited to 'src')
-rw-r--r-- | src/rest.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; } |