Skip to content

Conversation

@ggouaillardet
Copy link
Contributor

If component selection fails, then module->bases might be unallocated
when ompi_osc_sm_free() in invoked, so test it before trying to free()
module->bases[0].

Thanks Martin Binder for the report.

Refs #4770

Signed-off-by: Gilles Gouaillardet gilles@rist.or.jp

(cherry picked from commit 34b45cc)

If component selection fails, then module->bases might be unallocated
when ompi_osc_sm_free() in invoked, so test it before trying to free()
module->bases[0].

Thanks Martin Binder for the report.

Refs open-mpi#4770

Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>

(cherry picked from commit open-mpi/ompi@34b45cc)
@ggouaillardet
Copy link
Contributor Author

:bot:aws:retest

@jsquyres jsquyres changed the title osc/sm: fix the osc_free callback v3.1: osc/sm: fix the osc_free callback Jan 31, 2018
@bwbarrett bwbarrett merged commit 4c31cb6 into open-mpi:v3.1.x Jan 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants