Fixed leaks in PdB.