Fix leak in hash table allocation in profiler module