added a memory leak fix in the 2010-psi-fix-memory-leaks patch