the module isn't going away until after it's data has been freed.
if (!module->common->inst_type) {
talloc_set_name(data, "%s_t", module->dl->name ? module->dl->name : "config");
} else {
- talloc_set_name(data, "%s", module->common->inst_type);
+ talloc_set_name_const(data, module->common->inst_type);
}
dl_inst->data = data;
if (!mi->module->thread_inst_type) {
talloc_set_name(ti->data, "rlm_%s_thread_t", mi->module->name);
} else {
- talloc_set_name(ti->data, "%s", mi->module->thread_inst_type);
+ talloc_set_name_const(ti->data, mi->module->thread_inst_type);
}
}