- Be more careful with parens
- Run the destructor *before* shutting things down. This commit was SVN r14064.
Этот коммит содержится в:
родитель
ea08a555f9
Коммит
101a2abd09
@ -110,7 +110,7 @@ ORTE_DECLSPEC void orte_snapc_base_global_snapshot_destruct( orte_snapc_base_glo
|
||||
while (NULL != (item = opal_list_remove_first(&snapshot->snapshots))) {
|
||||
OBJ_RELEASE(item);
|
||||
}
|
||||
OBJ_DESTRUCT(&snapshot->snapshots);
|
||||
OBJ_DESTRUCT(&(snapshot->snapshots));
|
||||
|
||||
if(NULL != snapshot->reference_name) {
|
||||
free(snapshot->reference_name);
|
||||
|
@ -221,13 +221,13 @@ main(int argc, char *argv[])
|
||||
* Cleanup
|
||||
***************/
|
||||
cleanup:
|
||||
if(NULL != snapshot )
|
||||
OBJ_RELEASE(snapshot);
|
||||
|
||||
if (OPAL_SUCCESS != (ret = finalize())) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
if(NULL != snapshot )
|
||||
OBJ_RELEASE(snapshot);
|
||||
|
||||
return exit_status;
|
||||
}
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user