diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-01-05 20:19:12 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-01-05 20:19:12 +0000 |
commit | cfcfbd5e582eb2d1024003a92356046120ec29d7 (patch) | |
tree | b46b5cb7637e4de37cbbc470a50b9dac89802a74 | |
parent | 3b5bbe44905fa701c0df93f3d21c9ec57c7d1b78 (diff) | |
download | rspamd-cfcfbd5e582eb2d1024003a92356046120ec29d7.tar.gz rspamd-cfcfbd5e582eb2d1024003a92356046120ec29d7.zip |
[Minor] Plug minor leak
-rw-r--r-- | src/libserver/dns.c | 4 |
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); |