diff options
Diffstat (limited to 'src/controller.c')
-rw-r--r-- | src/controller.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/controller.c b/src/controller.c index 20a066b80..a8dbdec96 100644 --- a/src/controller.c +++ b/src/controller.c @@ -528,6 +528,7 @@ rspamd_controller_handle_get_map (struct rspamd_http_connection_entry *conn_ent, /* Read the whole buffer */ if (read (fd, reply->body->str, st.st_size) == -1) { + close (fd); rspamd_http_message_free (reply); msg_err ("cannot read map %s: %s", map->uri, strerror (errno)); rspamd_controller_send_error (conn_ent, 500, "500 map read error"); |