1
1

When 'mca_oob_send_callback' accesses the callback 'orte_pls_rsh_terminate_job_cb'

with an error status (< 0) then the req buffer is NULL. Put checks around the
OBJ_RELEASE(req) calls so that we don't try to release NULL :/

This commit was SVN r10641.
Этот коммит содержится в:
Josh Hursey 2006-07-03 22:44:54 +00:00
родитель d082a63734
Коммит 5c5ce7e051

Просмотреть файл

@ -143,14 +143,17 @@ static void orte_pls_rsh_terminate_job_cb(
int rc; int rc;
if (status < 0) { if (status < 0) {
ORTE_ERROR_LOG(status); ORTE_ERROR_LOG(status);
OBJ_RELEASE(req); if(NULL != req)
OBJ_RELEASE(req);
return; return;
} }
if (0 > (rc = orte_rml.recv_buffer_nb(peer, ORTE_RML_TAG_RMGR_CLNT, 0, orte_pls_rsh_terminate_job_rsp, NULL))) { if (0 > (rc = orte_rml.recv_buffer_nb(peer, ORTE_RML_TAG_RMGR_CLNT, 0, orte_pls_rsh_terminate_job_rsp, NULL))) {
ORTE_ERROR_LOG(rc); ORTE_ERROR_LOG(rc);
} }
OBJ_RELEASE(req);
if(NULL != req)
OBJ_RELEASE(req);
} }