From f03b82ab0a0f23f62fa94118129dbc655b3d5399 Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Fri, 20 Jan 2012 13:15:41 +0000 Subject: [PATCH] Don't fiddle with the port_name memory as, per standard, this is an input-only parameter This commit was SVN r25756. --- ompi/mca/dpm/orte/dpm_orte.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ompi/mca/dpm/orte/dpm_orte.c b/ompi/mca/dpm/orte/dpm_orte.c index 2a7ebbeedc..71d54fd15f 100644 --- a/ompi/mca/dpm/orte/dpm_orte.c +++ b/ompi/mca/dpm/orte/dpm_orte.c @@ -1460,8 +1460,7 @@ cleanup: static int close_port(char *port_name) { - /* the port name is a pointer to an array - DO NOT FREE IT! */ - memset(port_name, 0, MPI_MAX_PORT_NAME); + /* nothing to do here - user is responsible for the memory */ return OMPI_SUCCESS; }