From 78152aec8538a019eaba4adcb310c90cf3b83ed0 Mon Sep 17 00:00:00 2001 From: Gilles Gouaillardet Date: Thu, 7 Feb 2019 13:31:34 +0900 Subject: [PATCH] orte/nidmap: do not use compressed when uninitialized Signed-off-by: Gilles Gouaillardet --- orte/util/nidmap.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/orte/util/nidmap.c b/orte/util/nidmap.c index 9cd94d2730..f35916b2a9 100644 --- a/orte/util/nidmap.c +++ b/orte/util/nidmap.c @@ -1,7 +1,7 @@ /* * Copyright (c) 2016-2019 Intel, Inc. All rights reserved. - * Copyright (c) 2018 Research Organization for Information Science - * and Technology (RIST). All rights reserved. + * Copyright (c) 2018-2019 Research Organization for Information Science + * and Technology (RIST). All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow @@ -602,9 +602,9 @@ 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 (compressed) { + free(bo.bytes); + } } /* if we have uniform #slots, then just flag it - no @@ -646,9 +646,9 @@ 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 (compressed) { + free(bo.bytes); + } } /* if we have uniform flags, then just flag it - no @@ -694,9 +694,9 @@ 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 (compressed) { + free(bo.bytes); + } } cleanup: