1
1
as already reported by Coverity with CIDs
71818, 71819, 72250, 715767, 1196749 and 1274002
Этот коммит содержится в:
Gilles Gouaillardet 2015-03-05 13:58:05 +09:00
родитель 171d674ca4
Коммит d1b2f043ff
5 изменённых файлов: 11 добавлений и 7 удалений

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

@ -667,6 +667,7 @@ mca_bcol_base_module_t **mca_bcol_ptpcoll_comm_query(mca_sbgp_base_module_t *sbg
ptpcoll_module = OBJ_NEW(mca_bcol_ptpcoll_module_t); ptpcoll_module = OBJ_NEW(mca_bcol_ptpcoll_module_t);
if (NULL == ptpcoll_module) { if (NULL == ptpcoll_module) {
free(ptpcoll_modules);
return NULL; return NULL;
} }

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

@ -140,6 +140,12 @@ int mca_btl_base_select(bool enable_progress_threads,
} }
sm = OBJ_NEW(mca_btl_base_selected_module_t); sm = OBJ_NEW(mca_btl_base_selected_module_t);
if (NULL == sm) { if (NULL == sm) {
if (NULL != include) {
opal_argv_free(include);
}
if (NULL != exclude) {
opal_argv_free(exclude);
}
return OPAL_ERR_OUT_OF_RESOURCE; return OPAL_ERR_OUT_OF_RESOURCE;
} }
sm->btl_component = component; sm->btl_component = component;

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

@ -303,6 +303,7 @@ static int create_listen(void)
opal_output(0,"mca_oob_tcp_component_init: socket() failed: %s (%d)", opal_output(0,"mca_oob_tcp_component_init: socket() failed: %s (%d)",
strerror(opal_socket_errno), opal_socket_errno); strerror(opal_socket_errno), opal_socket_errno);
} }
opal_argv_free(ports);
return ORTE_ERR_IN_ERRNO; return ORTE_ERR_IN_ERRNO;
} }

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

@ -867,13 +867,8 @@ static int orte_rmaps_lama_map_core(orte_job_t *jdata)
OBJ_RELEASE(max_tree); OBJ_RELEASE(max_tree);
} }
if( NULL != pu_idx_ref ) { free(pu_idx_ref);
free(pu_idx_ref); free(last_pu_idx_ref);
}
if( NULL != last_pu_idx_ref ) {
free(last_pu_idx_ref);
}
if( NULL != last_level_str ) { if( NULL != last_level_str ) {
free(last_level_str); free(last_level_str);

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

@ -294,6 +294,7 @@ static int orte_rmaps_rf_map(orte_job_t *jdata)
/* parse the slot_list to find the socket and core */ /* parse the slot_list to find the socket and core */
if (ORTE_SUCCESS != (rc = opal_hwloc_base_slot_list_parse(slots, node->topology, rtype, bitmap))) { if (ORTE_SUCCESS != (rc = opal_hwloc_base_slot_list_parse(slots, node->topology, rtype, bitmap))) {
ORTE_ERROR_LOG(rc); ORTE_ERROR_LOG(rc);
hwloc_bitmap_free(bitmap);
goto error; goto error;
} }
/* note that we cannot set the proc locale to any specific object /* note that we cannot set the proc locale to any specific object