From a988ad24ebfab0ba581a26b5d497015fac030fc5 Mon Sep 17 00:00:00 2001 From: Gilles Gouaillardet Date: Fri, 2 Dec 2016 17:23:45 +0900 Subject: [PATCH] orte/runtime: plug a leak in orte_finalize() Signed-off-by: Gilles Gouaillardet --- orte/runtime/orte_finalize.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/orte/runtime/orte_finalize.c b/orte/runtime/orte_finalize.c index d60d802f2a..7bdd8cf8a5 100644 --- a/orte/runtime/orte_finalize.c +++ b/orte/runtime/orte_finalize.c @@ -13,6 +13,8 @@ * Copyright (c) 2011-2013 Los Alamos National Security, LLC. * All rights reserved. * Copyright (c) 2014-2016 Intel, Inc. All rights reserved. + * Copyright (c) 2017 Research Organization for Information Science + * and Technology (RIST). All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow @@ -87,6 +89,10 @@ int orte_finalize(void) /* Close the general debug stream */ opal_output_close(orte_debug_output); + if (NULL != orte_fork_agent) { + opal_argv_free(orte_fork_agent); + } + /* finalize the opal utilities */ rc = opal_finalize();