fix memory corruption
cmr:v1.7.3:reviewer=ompi-rm1.7