Plug memory leak after 88a83b538861

Ensure that the callback hash table is freed properly.