state/hnp: plug a memory leak
Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
Этот коммит содержится в:
родитель
4d58b8dcae
Коммит
7fe6840232
@ -2,6 +2,8 @@
|
|||||||
* Copyright (c) 2011-2012 Los Alamos National Security, LLC.
|
* Copyright (c) 2011-2012 Los Alamos National Security, LLC.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
* Copyright (c) 2014 Intel, Inc. All rights reserved
|
* Copyright (c) 2014 Intel, Inc. All rights reserved
|
||||||
|
* Copyright (c) 2017 Research Organization for Information Science
|
||||||
|
* and Technology (RIST). All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -190,10 +192,9 @@ static int finalize(void)
|
|||||||
opal_list_item_t *item;
|
opal_list_item_t *item;
|
||||||
|
|
||||||
/* cleanup the proc state machine */
|
/* cleanup the proc state machine */
|
||||||
while (NULL != (item = opal_list_remove_first(&orte_proc_states))) {
|
OPAL_LIST_DESTRUCT(&orte_proc_states);
|
||||||
OBJ_RELEASE(item);
|
/* cleanup the job state machine */
|
||||||
}
|
OPAL_LIST_DESTRUCT(&orte_job_states);
|
||||||
OBJ_DESTRUCT(&orte_proc_states);
|
|
||||||
|
|
||||||
return ORTE_SUCCESS;
|
return ORTE_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user