mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-10-18 11:09:36 +00:00
4bf46ceb377506d2df8543a0604ba699d8f8287a
If we stop reading a file before getting to the end, get_line_alloc() will not clean up the memory it allocated. Give get_line_alloc() the ability to do a forced cleanup by calling it with a NULL file, and use that ability where we stop reading a file early. Also clear the state variables when we free the memory, to pre-empt use-after-free.
Languages
C
94.3%
Perl
2.2%
HTML
1.2%
Shell
1%
Makefile
0.6%
Other
0.6%