Pull NULL checks around releasing of resources to ensure we don't
segv. This commit was SVN r7971.
Этот коммит содержится в:
родитель
653f43cc2b
Коммит
1b691f8089
@ -497,12 +497,22 @@ int orte_gpr_replica_recv_get_conditional_cmd(orte_buffer_t *input_buffer,
|
||||
free(values);
|
||||
}
|
||||
|
||||
if (NULL != conds) {
|
||||
for (i=0; i < num_conditions; i++) {
|
||||
if (NULL != conds[i]) OBJ_RELEASE(conds[i]);
|
||||
if (NULL != conditions[i]) OBJ_RELEASE(conditions[i]);
|
||||
if (NULL != conds[i]) {
|
||||
OBJ_RELEASE(conds[i]);
|
||||
}
|
||||
}
|
||||
free(conds);
|
||||
}
|
||||
if (NULL != conditions) {
|
||||
for (i=0; i < num_conditions; i++) {
|
||||
if (NULL != conditions[i]) {
|
||||
OBJ_RELEASE(conditions[i]);
|
||||
}
|
||||
}
|
||||
free(conditions);
|
||||
}
|
||||
if (NULL != conds) free(conds);
|
||||
if (NULL != conditions) free(conditions);
|
||||
|
||||
/* pack response code */
|
||||
if (ORTE_SUCCESS != (rc = orte_dps.pack(output_buffer, &ret, 1, ORTE_INT))) {
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user