fixed memory cleanup
Merge branch 'master' of https://github.com/acrlakshman/OpenFOAM_libraries