fix memory leaks in libph
Merge branch 'master' of https://github.com/SCOREC/core