driver: Yet 1 more g_autofree conversion change

This is the last missing g_autofree conversion change in the module after
commit 1e2ae2e311 took care of the VIR_AUTOFREE conversion.

Signed-off-by: Seeteena Thoufeek <s1seetee@linux.vnet.ibm.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
Seeteena Thoufeek 2020-04-13 18:18:57 +05:30 committed by Erik Skultety
parent de7ec8629b
commit 9115ebe892

View File

@ -48,7 +48,7 @@ virDriverLoadModule(const char *name,
const char *regfunc,
bool required)
{
char *modfile = NULL;
g_autofree char *modfile = NULL;
int ret;
VIR_DEBUG("Module load %s", name);
@ -62,9 +62,6 @@ virDriverLoadModule(const char *name,
return -1;
ret = virModuleLoad(modfile, regfunc, required);
VIR_FREE(modfile);
return ret;
}