mpi/sgimpt - fix possible memory leak and cosmetic changes