From 33352e9506312155cd329a7df453399f6cf4d4d1 Mon Sep 17 00:00:00 2001 From: Gilles Gouaillardet Date: Tue, 3 Mar 2015 12:36:21 +0900 Subject: [PATCH] schizo: fix misc memory leak as reported by Coverity with CID 1196722 --- orte/mca/schizo/ompi/schizo_ompi.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/orte/mca/schizo/ompi/schizo_ompi.c b/orte/mca/schizo/ompi/schizo_ompi.c index ccf2df2bbc..bbc9a5f2c3 100644 --- a/orte/mca/schizo/ompi/schizo_ompi.c +++ b/orte/mca/schizo/ompi/schizo_ompi.c @@ -14,6 +14,8 @@ * Copyright (c) 2009-2015 Cisco Systems, Inc. All rights reserved. * Copyright (c) 2011 Oak Ridge National Labs. All rights reserved. * Copyright (c) 2013-2015 Intel, Inc. All rights reserved. + * Copyright (c) 2015 Research Organization for Information Science + * and Technology (RIST). All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow @@ -589,6 +591,9 @@ static int setup_child(orte_job_t *jdata, orte_process_info.nodename, NULL, &child->name))) { ORTE_ERROR_LOG(rc); + if (NULL != value) { + free(value); + } return rc; } free(value);