* We have a module, but the caller doesn't care about
* method or names, so just return the module.
*/
- if (!method || !method_name1 || !method_name2) {
- talloc_free(inst_name);
- return mi;
- }
+ if (!method || !method_name1 || !method_name2) goto finish;
/*
* We MAY have two names.
if (!mrlm->method_names) {
*name1 = name + (p - inst_name);
*name2 = NULL;
- talloc_free(inst_name);
- return mi;
+ goto finish;
}
/*
/*
* Return the found module.
*/
- talloc_free(inst_name);
- return mi;
+ goto finish;
}
/*
* We CANNOT have '.' in method names.
*/
- if (strchr(q + 1, '.') != 0) {
- talloc_free(inst_name);
- return mi;
- }
+ if (strchr(q + 1, '.') != 0) goto finish;
len = q - p;