This is the last missing g_autofree conversion change in the module after
commit
1e2ae2e311c took care of the VIR_AUTOFREE conversion.
Signed-off-by: Seeteena Thoufeek <s1seetee@linux.vnet.ibm.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
const char *regfunc,
bool required)
{
- char *modfile = NULL;
+ g_autofree char *modfile = NULL;
int ret;
VIR_DEBUG("Module load %s", name);
return -1;
ret = virModuleLoad(modfile, regfunc, required);
-
- VIR_FREE(modfile);
-
return ret;
}