Fixed memory leak in profiler

Reintroduced explicit freeing of ProfileNodeInfos, since List doesn't call destructors