Don't free memory escaping mca_common_ompio_prepare_to_group
Signed-off-by: Joseph Schuchart <schuchart@hlrs.de>
Этот коммит содержится в:
родитель
9a60f5b7fb
Коммит
ed1ca1a84b
@ -1333,14 +1333,12 @@ int mca_common_ompio_prepare_to_group(ompio_file_t *fh,
|
|||||||
if (NULL == aggr_bytes_per_group_tmp) {
|
if (NULL == aggr_bytes_per_group_tmp) {
|
||||||
opal_output (1, "OUT OF MEMORY\n");
|
opal_output (1, "OUT OF MEMORY\n");
|
||||||
ret = OMPI_ERR_OUT_OF_RESOURCE;
|
ret = OMPI_ERR_OUT_OF_RESOURCE;
|
||||||
free(end_offsets_tmp);
|
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
decision_list_tmp = (int* )malloc (fh->f_init_num_aggrs * sizeof(int));
|
decision_list_tmp = (int* )malloc (fh->f_init_num_aggrs * sizeof(int));
|
||||||
if (NULL == decision_list_tmp) {
|
if (NULL == decision_list_tmp) {
|
||||||
opal_output (1, "OUT OF MEMORY\n");
|
opal_output (1, "OUT OF MEMORY\n");
|
||||||
ret = OMPI_ERR_OUT_OF_RESOURCE;
|
ret = OMPI_ERR_OUT_OF_RESOURCE;
|
||||||
free(end_offsets_tmp);
|
|
||||||
if (NULL != aggr_bytes_per_group_tmp) {
|
if (NULL != aggr_bytes_per_group_tmp) {
|
||||||
free(aggr_bytes_per_group_tmp);
|
free(aggr_bytes_per_group_tmp);
|
||||||
}
|
}
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user