commit cfcfbd5: [Minor] Plug minor leak

Vsevolod Stakhov vsevolod at highsecure.ru
Tue Jan 5 20:21:06 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-01-05 20:19:12 +0000
URL: https://github.com/rspamd/rspamd/commit/cfcfbd5e582eb2d1024003a92356046120ec29d7 (HEAD -> master)

[Minor] Plug minor leak

---
 src/libserver/dns.c | 4 ++++
 1 file changed, 4 insertions(+)

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);
 


More information about the Commits mailing list