Skip to content

Commit

Permalink
[Minor] Plug minor leak
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Jan 5, 2021
1 parent 3b5bbe4 commit cfcfbd5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libserver/dns.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit cfcfbd5

Please sign in to comment.