Skip to content

Commit 8f51e9b

Browse files
authored
Merge pull request open-mpi#4779 from ggouaillardet/topic/v2.x/osc_sm_free
v2.x: osc/sm: fix the osc_free callback
2 parents f533a28 + cdff34f commit 8f51e9b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ompi/mca/osc/sm/osc_sm_component.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* reserved.
66
* Copyright (c) 2014 Intel, Inc. All rights reserved.
77
* Copyright (c) 2015 Cisco Systems, Inc. All rights reserved.
8-
* Copyright (c) 2015-2017 Research Organization for Information Science
8+
* Copyright (c) 2015-2018 Research Organization for Information Science
99
* and Technology (RIST). All rights reserved.
1010
* $COPYRIGHT$
1111
*
@@ -473,7 +473,9 @@ ompi_osc_sm_free(struct ompi_win_t *win)
473473
} else {
474474
free(module->node_states);
475475
free(module->global_state);
476-
free(module->bases[0]);
476+
if (NULL != module->bases) {
477+
free(module->bases[0]);
478+
}
477479
}
478480
free(module->disp_units);
479481
free(module->outstanding_locks);

0 commit comments

Comments
 (0)