Fix a memory leak of ~100kB per new DHT + fix minor typo

Fix a memory leak found with valgrind, in the order of magnitude of 100kB per new DHT created.
Additionally, fixes a typo I stumbled upon by chance.