]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix GeoIP2 memory leak upon reconfiguration
authorMichał Kępień <michal@isc.org>
Mon, 2 Dec 2019 14:15:06 +0000 (15:15 +0100)
committerMichał Kępień <michal@isc.org>
Mon, 2 Dec 2019 14:15:06 +0000 (15:15 +0100)
commit670afbe84a87e202fa795079d9d6d1639bcf391d
tree00bae0b2ec97f93a6eec6f2ea3c991a2f1f90c5b
parent289f143d8a2a248333ace4d1d43ab388c7405a73
Fix GeoIP2 memory leak upon reconfiguration

Loaded GeoIP2 databases are only released when named is shut down, but
not during server reconfiguration.  This causes memory to be leaked
every time "rndc reconfig" or "rndc reload" is used, as long as any
GeoIP2 database is in use.  Fix by releasing any loaded GeoIP2 databases
before reloading them.  Do not call dns_geoip_shutdown() until server
shutdown as that function releases the memory context used for caching
GeoIP2 lookup results.
bin/named/geoip.c
bin/named/server.c