Plug a couple of additional memory leaks - try to highlight a little better that strings returned from reg_string_name must be freed by caller
This commit was SVN r24383.
Этот коммит содержится в:
родитель
a9dca25ca5
Коммит
bf1cff3711
@ -321,7 +321,7 @@ BEGIN_C_DECLS
|
||||
* never be NULL. It will always have a value, even if that value is
|
||||
* the empty string.
|
||||
*
|
||||
* Strings returned in the \em current_value parameter should later
|
||||
* NOTE: Strings returned in the \em current_value parameter should later
|
||||
* be free()'ed.
|
||||
*
|
||||
* This function is identical to mca_base_param_reg_int() except
|
||||
|
@ -137,6 +137,7 @@ opal_net_init()
|
||||
&string_value );
|
||||
|
||||
args = opal_argv_split( string_value, ';' );
|
||||
free(string_value);
|
||||
if( NULL != args ) {
|
||||
count = opal_argv_count(args);
|
||||
private_ipv4 = (private_ipv4_t*)malloc( (count + 1) * sizeof(private_ipv4_t));
|
||||
|
@ -98,6 +98,7 @@ int orte_notifier_base_open(void)
|
||||
opal_output(0, "Unknown notifier level");
|
||||
return ORTE_ERROR;
|
||||
}
|
||||
free(level);
|
||||
|
||||
OBJ_CONSTRUCT(&orte_notifier_base_selected_modules, opal_list_t);
|
||||
OBJ_CONSTRUCT(&orte_notifier_log_selected_modules, opal_list_t);
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user