Fix a small leak in orte/util/name_fns.c
cmr:v1.7 This commit was SVN r27576.
Этот коммит содержится в:
родитель
ae92f64842
Коммит
842caae4c7
@ -72,12 +72,13 @@ buffer_cleanup(void *value)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
orte_print_args_buffers_t *ptr;
|
orte_print_args_buffers_t *ptr;
|
||||||
|
|
||||||
if (NULL != value) {
|
if (NULL != value) {
|
||||||
ptr = (orte_print_args_buffers_t*)value;
|
ptr = (orte_print_args_buffers_t*)value;
|
||||||
for (i=0; i < ORTE_PRINT_NAME_ARG_NUM_BUFS; i++) {
|
for (i=0; i < ORTE_PRINT_NAME_ARG_NUM_BUFS; i++) {
|
||||||
free(ptr->buffers[i]);
|
free(ptr->buffers[i]);
|
||||||
}
|
}
|
||||||
|
free (ptr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user