]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Plug minor leak
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 5 Jan 2021 20:19:12 +0000 (20:19 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 5 Jan 2021 20:19:12 +0000 (20:19 +0000)
src/libserver/dns.c

index e5ec9d72971a96c10f8a883df3ad26f43f39cfd6..03bb88b84f629304c2ed55f687f8bce462b219c1 100644 (file)
@@ -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);