Fix a number of SSA/dominance memory leaks.

Found by FROGGS++ using Valgrind.