1
1

orte/nidmap: do not use compressed when uninitialized

Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
Этот коммит содержится в:
Gilles Gouaillardet 2019-02-07 13:31:34 +09:00 коммит произвёл Ralph Castain
родитель 1ee6c185f7
Коммит 78152aec85

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

@ -1,6 +1,6 @@
/*
* Copyright (c) 2016-2019 Intel, Inc. All rights reserved.
* Copyright (c) 2018 Research Organization for Information Science
* Copyright (c) 2018-2019 Research Organization for Information Science
* and Technology (RIST). All rights reserved.
* $COPYRIGHT$
*
@ -602,10 +602,10 @@ int orte_util_pass_node_info(opal_buffer_t *buffer)
/* add the object */
boptr = &bo;
rc = opal_dss.pack(buffer, &boptr, 1, OPAL_BYTE_OBJECT);
}
if (compressed) {
free(bo.bytes);
}
}
/* if we have uniform #slots, then just flag it - no
* need to pass anything */
@ -646,10 +646,10 @@ int orte_util_pass_node_info(opal_buffer_t *buffer)
/* add the object */
boptr = &bo;
rc = opal_dss.pack(buffer, &boptr, 1, OPAL_BYTE_OBJECT);
}
if (compressed) {
free(bo.bytes);
}
}
/* if we have uniform flags, then just flag it - no
* need to pass anything */
@ -694,10 +694,10 @@ int orte_util_pass_node_info(opal_buffer_t *buffer)
/* add the object */
boptr = &bo;
rc = opal_dss.pack(buffer, &boptr, 1, OPAL_BYTE_OBJECT);
}
if (compressed) {
free(bo.bytes);
}
}
cleanup:
if (NULL != slots) {