Skip to content

Commit 78152ae

Browse files
ggouaillardetrhc54
authored andcommitted
orte/nidmap: do not use compressed when uninitialized
Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
1 parent 1ee6c18 commit 78152ae

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

orte/util/nidmap.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Copyright (c) 2016-2019 Intel, Inc. All rights reserved.
3-
* Copyright (c) 2018 Research Organization for Information Science
4-
* and Technology (RIST). All rights reserved.
3+
* Copyright (c) 2018-2019 Research Organization for Information Science
4+
* and Technology (RIST). All rights reserved.
55
* $COPYRIGHT$
66
*
77
* Additional copyrights may follow
@@ -602,9 +602,9 @@ int orte_util_pass_node_info(opal_buffer_t *buffer)
602602
/* add the object */
603603
boptr = &bo;
604604
rc = opal_dss.pack(buffer, &boptr, 1, OPAL_BYTE_OBJECT);
605-
}
606-
if (compressed) {
607-
free(bo.bytes);
605+
if (compressed) {
606+
free(bo.bytes);
607+
}
608608
}
609609

610610
/* if we have uniform #slots, then just flag it - no
@@ -646,9 +646,9 @@ int orte_util_pass_node_info(opal_buffer_t *buffer)
646646
/* add the object */
647647
boptr = &bo;
648648
rc = opal_dss.pack(buffer, &boptr, 1, OPAL_BYTE_OBJECT);
649-
}
650-
if (compressed) {
651-
free(bo.bytes);
649+
if (compressed) {
650+
free(bo.bytes);
651+
}
652652
}
653653

654654
/* if we have uniform flags, then just flag it - no
@@ -694,9 +694,9 @@ int orte_util_pass_node_info(opal_buffer_t *buffer)
694694
/* add the object */
695695
boptr = &bo;
696696
rc = opal_dss.pack(buffer, &boptr, 1, OPAL_BYTE_OBJECT);
697-
}
698-
if (compressed) {
699-
free(bo.bytes);
697+
if (compressed) {
698+
free(bo.bytes);
699+
}
700700
}
701701

702702
cleanup:

0 commit comments

Comments
 (0)