aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/maps/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libserver/maps/map.c')
-rw-r--r--src/libserver/maps/map.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libserver/maps/map.c b/src/libserver/maps/map.c
index f324f9d70..eaf7958f8 100644
--- a/src/libserver/maps/map.c
+++ b/src/libserver/maps/map.c
@@ -596,6 +596,8 @@ read_map_file_chunks (struct rspamd_map *map, struct map_cb_data *cbdata,
if (lseek (fd, off, SEEK_SET) == -1) {
msg_err_map ("can't seek in map to pos %d for buffered reading %s: %s",
(gint)off, fname, strerror (errno));
+ close (fd);
+
return FALSE;
}