crs none: ensure file is != NULL before closing it
This was CID 71701
Этот коммит содержится в:
родитель
8fd5e75463
Коммит
f381c5ea8b
@ -2,6 +2,7 @@
|
|||||||
* Copyright (c) 2004-2010 The Trustees of Indiana University.
|
* Copyright (c) 2004-2010 The Trustees of Indiana University.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
|
* Copyright (c) 2015 Cisco Systems, Inc. All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -151,7 +152,9 @@ int opal_crs_none_restart(opal_crs_base_snapshot_t *base_snapshot, bool spawn_ch
|
|||||||
}
|
}
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
fclose(base_snapshot->metadata);
|
if (NULL != base_snapshot->metadata) {
|
||||||
|
fclose(base_snapshot->metadata);
|
||||||
|
}
|
||||||
base_snapshot->metadata = NULL;
|
base_snapshot->metadata = NULL;
|
||||||
|
|
||||||
return exit_status;
|
return exit_status;
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user