mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
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:
parent
de7ec8629b
commit
9115ebe892
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user