aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-01-05 20:19:12 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-01-05 20:19:12 +0000
commitcfcfbd5e582eb2d1024003a92356046120ec29d7 (patch)
treeb46b5cb7637e4de37cbbc470a50b9dac89802a74
parent3b5bbe44905fa701c0df93f3d21c9ec57c7d1b78 (diff)
downloadrspamd-cfcfbd5e582eb2d1024003a92356046120ec29d7.tar.gz
rspamd-cfcfbd5e582eb2d1024003a92356046120ec29d7.zip
[Minor] Plug minor leak
-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);