@@ -1247,7 +1247,6 @@ int ompi_dpm_spawn(int count, const char *array_of_commands[],
1247
1247
ompi_info_get (array_of_info [i ], "pernode" , & info_str , & flag );
1248
1248
if ( flag ) {
1249
1249
rc = dpm_convert (& job_info , "pernode" , PMIX_MAPBY , "PPR:1:NODE" , NULL , true);
1250
- free (tmp );
1251
1250
OBJ_RELEASE (info_str );
1252
1251
if (OMPI_SUCCESS != rc ) {
1253
1252
OPAL_LIST_DESTRUCT (& job_info );
@@ -1298,7 +1297,6 @@ int ompi_dpm_spawn(int count, const char *array_of_commands[],
1298
1297
return MPI_ERR_SPAWN ;
1299
1298
}
1300
1299
rc = dpm_convert (& job_info , "ppr" , PMIX_MAPBY , info_str -> string , NULL , true);
1301
- free (tmp );
1302
1300
OBJ_RELEASE (info_str );
1303
1301
if (OMPI_SUCCESS != rc ) {
1304
1302
OPAL_LIST_DESTRUCT (& job_info );
@@ -1319,7 +1317,6 @@ int ompi_dpm_spawn(int count, const char *array_of_commands[],
1319
1317
ompi_info_get (array_of_info [i ], "map_by" , & info_str , & flag );
1320
1318
if ( flag ) {
1321
1319
rc = dpm_convert (& job_info , "map_by" , PMIX_MAPBY , info_str -> string , NULL , false);
1322
- free (tmp );
1323
1320
OBJ_RELEASE (info_str );
1324
1321
if (OMPI_SUCCESS != rc ) {
1325
1322
OPAL_LIST_DESTRUCT (& job_info );
@@ -1357,7 +1354,6 @@ int ompi_dpm_spawn(int count, const char *array_of_commands[],
1357
1354
ompi_info_get (array_of_info [i ], "rank_by" , & info_str , & flag );
1358
1355
if ( flag ) {
1359
1356
rc = dpm_convert (& job_info , "rank_by" , PMIX_RANKBY , info_str -> string , NULL , false);
1360
- free (tmp );
1361
1357
OBJ_RELEASE (info_str );
1362
1358
if (OMPI_SUCCESS != rc ) {
1363
1359
OPAL_LIST_DESTRUCT (& job_info );
@@ -1389,7 +1385,6 @@ int ompi_dpm_spawn(int count, const char *array_of_commands[],
1389
1385
ompi_info_get (array_of_info [i ], "bind_to" , & info_str , & flag );
1390
1386
if ( flag ) {
1391
1387
rc = dpm_convert (& job_info , "bind_to" , PMIX_BINDTO , info_str -> string , NULL , false);
1392
- free (tmp );
1393
1388
OBJ_RELEASE (info_str );
1394
1389
if (OMPI_SUCCESS != rc ) {
1395
1390
OPAL_LIST_DESTRUCT (& job_info );
0 commit comments