We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dae142 commit 1e5b880Copy full SHA for 1e5b880
ompi/dpm/dpm.c
@@ -737,10 +737,7 @@ static int dpm_convert(opal_list_t *infos,
737
if (0 != strncasecmp(ck, directive, strlen(directive))) {
738
opal_asprintf(&help_str, "Conflicting directives \"%s %s\"", ck, directive);
739
#if PMIX_NUMERIC_VERSION >= 0x00040000
740
- /* TODO: remove strdup if PMIx_Get_attribute_string takes const char* */
741
- char *option_dup = strdup(option);
742
- attr = PMIx_Get_attribute_string(option_dup);
743
- free(option_dup);
+ attr = PMIx_Get_attribute_string(option);
744
#else
745
attr = option;
746
#endif
0 commit comments