提交 9115ebe8 编写于 作者: S Seeteena Thoufeek 提交者: Erik Skultety

driver: Yet 1 more g_autofree conversion change

This is the last missing g_autofree conversion change in the module after
commit 1e2ae2e3 took care of the VIR_AUTOFREE conversion.
Signed-off-by: NSeeteena Thoufeek <s1seetee@linux.vnet.ibm.com>
Reviewed-by: NErik Skultety <eskultet@redhat.com>
上级 de7ec862
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册