From 4d58b8dcae1946dfbeb93f500c870deb6b1d3fcc Mon Sep 17 00:00:00 2001 From: Gilles Gouaillardet Date: Fri, 6 Jan 2017 13:33:31 +0900 Subject: [PATCH] ess/pmi: plug a memory leak Signed-off-by: Gilles Gouaillardet --- orte/mca/ess/pmi/ess_pmi_module.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/orte/mca/ess/pmi/ess_pmi_module.c b/orte/mca/ess/pmi/ess_pmi_module.c index 7997c282b1..6ed504f341 100644 --- a/orte/mca/ess/pmi/ess_pmi_module.c +++ b/orte/mca/ess/pmi/ess_pmi_module.c @@ -13,7 +13,7 @@ * Copyright (c) 2012-2013 Los Alamos National Security, LLC. * All rights reserved. * Copyright (c) 2013-2017 Intel, Inc. All rights reserved. - * Copyright (c) 2016 Research Organization for Information Science + * Copyright (c) 2016-2017 Research Organization for Information Science * and Technology (RIST). All rights reserved. * $COPYRIGHT$ * @@ -345,6 +345,7 @@ static int rte_init(void) &pname, &val, OPAL_STRING); if (OPAL_SUCCESS == ret && NULL != val) { u16 = opal_hwloc_compute_relative_locality(mycpuset, val); + free(val); } else { /* all we can say is that it shares our node */ u16 = OPAL_PROC_ON_CLUSTER | OPAL_PROC_ON_CU | OPAL_PROC_ON_NODE;