aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libserver/dns.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libserver/dns.c b/src/libserver/dns.c
index e5ec9d729..03bb88b84 100644
--- a/src/libserver/dns.c
+++ b/src/libserver/dns.c
@@ -792,6 +792,10 @@ rspamd_dns_read_hosts_file (struct rspamd_config *cfg,
g_strfreev (elts);
}
+ if (linebuf) {
+ free (linebuf);
+ }
+
msg_info_config ("processed host file %s; %d records added", fname, nadded);
fclose (fp);