Skip to content

Commit 88e26c6

Browse files
committed
spml/ucx: fix a double free() issue
in mca_spml_ucx_add_procs() error path Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
1 parent 13bbc39 commit 88e26c6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

oshmem/mca/spml/ucx/spml_ucx.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Copyright (c) 2013 Mellanox Technologies, Inc.
33
* All rights reserved.
4-
* Copyright (c) 2014-2016 Research Organization for Information Science
4+
* Copyright (c) 2014-2018 Research Organization for Information Science
55
* and Technology (RIST). All rights reserved.
66
* Copyright (c) 2016 ARM, Inc. All rights reserved.
77
* $COPYRIGHT$
@@ -319,8 +319,6 @@ int mca_spml_ucx_add_procs(ompi_proc_t** procs, size_t nprocs)
319319
free(wk_rsizes);
320320
if (wk_roffs)
321321
free(wk_roffs);
322-
if (mca_spml_ucx.ucp_peers)
323-
free(mca_spml_ucx.ucp_peers);
324322
error:
325323
rc = OSHMEM_ERR_OUT_OF_RESOURCE;
326324
SPML_ERROR("add procs FAILED rc=%d", rc);

0 commit comments

Comments
 (0)