mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-10-19 11:19:34 +00:00
ceab392c600bb6c9d587ab6897121d1f55b54511
Clearing and reloading the DNS cache involved freeing and re-allocating many small memory blocks. Doing this frequently with a significant number of static DNS configuraions or DHCP leases could result in excessive heap fragmentation and memory use. This patch extends the pool memory allocation technique used else where to this memory. On cache clear, the memory is not freed, but added to a pool of useable but unused data structures which get re-used to store the new data.
Languages
C
94.3%
Perl
2.2%
HTML
1.2%
Shell
1%
Makefile
0.6%
Other
0.6%