1
1

Don't fiddle with the port_name memory as, per standard, this is an input-only parameter

This commit was SVN r25756.
Этот коммит содержится в:
Ralph Castain 2012-01-20 13:15:41 +00:00
родитель 740f0650a1
Коммит f03b82ab0a

Просмотреть файл

@ -1460,8 +1460,7 @@ cleanup:
static int close_port(char *port_name) static int close_port(char *port_name)
{ {
/* the port name is a pointer to an array - DO NOT FREE IT! */ /* nothing to do here - user is responsible for the memory */
memset(port_name, 0, MPI_MAX_PORT_NAME);
return OMPI_SUCCESS; return OMPI_SUCCESS;
} }