Don't fiddle with the port_name memory as, per standard, this is an input-only parameter
This commit was SVN r25756.
Этот коммит содержится в:
родитель
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user