File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -375,10 +375,18 @@ int mca_pml_ubcl_endpoint_release(ompi_proc_t *proc)
375375 ubcl_error_t ret = UBCL_SUCCESS ;
376376 int ompi_error = OMPI_SUCCESS ;
377377 mca_common_ubcl_endpoint_t * endpoint = NULL ;
378- assert (NULL != proc );
378+
379+ if (NULL == proc ) {
380+ OPAL_OUTPUT_VERBOSE ((90 , mca_pml_ubcl_component .output , "pml_ubcl_endpoint release : proc is NULL" ));
381+ return OMPI_SUCCESS ;
382+ }
379383
380384 endpoint = (proc )-> proc_endpoints [OMPI_PROC_ENDPOINT_TAG_PML ];
381- assert (NULL != endpoint );
385+
386+ if (NULL == endpoint ) {
387+ OPAL_OUTPUT_VERBOSE ((50 , mca_pml_ubcl_component .output , "pml_ubcl_endpoint release : endpoint is NULL" ));
388+ return OMPI_SUCCESS ;
389+ }
382390
383391 endpoint_refcount = opal_atomic_sub_fetch_32 (& endpoint -> refcount , 1 );
384392 if (0 == endpoint_refcount ) {
You can’t perform that action at this time.
0 commit comments