diff --git a/opal/runtime/opal_info_support.c b/opal/runtime/opal_info_support.c index 700b1064f9..eb10cbbcdb 100644 --- a/opal/runtime/opal_info_support.c +++ b/opal/runtime/opal_info_support.c @@ -272,7 +272,6 @@ int opal_info_register_components(opal_pointer_array_t *mca_types, /* can't manipulate it directly, so make a copy first */ asprintf(&target, "%s=", env); putenv(target); - free(target); } free(env); } diff --git a/orte/runtime/orte_info_support.c b/orte/runtime/orte_info_support.c index 9b8a37ffc2..99444ab514 100644 --- a/orte/runtime/orte_info_support.c +++ b/orte/runtime/orte_info_support.c @@ -108,7 +108,6 @@ int orte_info_register_components(opal_pointer_array_t *mca_types, /* can't manipulate it directly, so make a copy first */ asprintf(&target, "%s=", env); putenv(target); - free(target); } free(env); }