orted: plug misc memory leaks
as reported by Coverity with CID 1362603 and 1362606
Этот коммит содержится в:
родитель
cd2b5a82ed
Коммит
be41b120d0
@ -15,6 +15,8 @@
|
|||||||
* Copyright (c) 2009 Sun Microsystems, Inc. All rights reserved.
|
* Copyright (c) 2009 Sun Microsystems, Inc. All rights reserved.
|
||||||
* Copyright (c) 2010-2011 Oak Ridge National Labs. All rights reserved.
|
* Copyright (c) 2010-2011 Oak Ridge National Labs. All rights reserved.
|
||||||
* Copyright (c) 2014-2016 Intel, Inc. All rights reserved.
|
* Copyright (c) 2014-2016 Intel, Inc. All rights reserved.
|
||||||
|
* Copyright (c) 2016 Research Organization for Information Science
|
||||||
|
* and Technology (RIST). All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -1145,6 +1147,9 @@ void orte_daemon_recv(int status, orte_process_name_t* sender,
|
|||||||
OBJ_RELEASE(relay_msg);
|
OBJ_RELEASE(relay_msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (NULL != gstack_exec) {
|
||||||
|
free(gstack_exec);
|
||||||
|
}
|
||||||
/* always send our response */
|
/* always send our response */
|
||||||
if (0 > (ret = orte_rml.send_buffer_nb(ORTE_PROC_MY_HNP, answer,
|
if (0 > (ret = orte_rml.send_buffer_nb(ORTE_PROC_MY_HNP, answer,
|
||||||
ORTE_RML_TAG_STACK_TRACE,
|
ORTE_RML_TAG_STACK_TRACE,
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
* Copyright (c) 2007-2016 Los Alamos National Security, LLC. All rights
|
* Copyright (c) 2007-2016 Los Alamos National Security, LLC. All rights
|
||||||
* reserved.
|
* reserved.
|
||||||
* Copyright (c) 2013-2016 Intel, Inc. All rights reserved.
|
* Copyright (c) 2013-2016 Intel, Inc. All rights reserved.
|
||||||
* Copyright (c) 2015 Research Organization for Information Science
|
* Copyright (c) 2015-2016 Research Organization for Information Science
|
||||||
* and Technology (RIST). All rights reserved.
|
* and Technology (RIST). All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
@ -1291,7 +1291,7 @@ static int create_app(int argc, char* argv[],
|
|||||||
char *param, *value;
|
char *param, *value;
|
||||||
orte_app_context_t *app = NULL;
|
orte_app_context_t *app = NULL;
|
||||||
bool found = false;
|
bool found = false;
|
||||||
char *appname;
|
char *appname = NULL;
|
||||||
|
|
||||||
*made_app = false;
|
*made_app = false;
|
||||||
|
|
||||||
@ -1704,7 +1704,6 @@ static int create_app(int argc, char* argv[],
|
|||||||
free(value);
|
free(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
free(appname);
|
|
||||||
|
|
||||||
*app_ptr = app;
|
*app_ptr = app;
|
||||||
app = NULL;
|
app = NULL;
|
||||||
@ -1716,6 +1715,9 @@ static int create_app(int argc, char* argv[],
|
|||||||
if (NULL != app) {
|
if (NULL != app) {
|
||||||
OBJ_RELEASE(app);
|
OBJ_RELEASE(app);
|
||||||
}
|
}
|
||||||
|
if (NULL != appname) {
|
||||||
|
free(appname);
|
||||||
|
}
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user