Don't leak canonical module name and patterns if module is built-in

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Alan Coopersmith 2009-03-26 22:25:08 -07:00
parent 9180081ec3
commit 1c101d75d4

View File

@ -868,7 +868,8 @@ doLoadModule(const char *module, const char *path, const char **subdirlist,
if (!strcmp (m, *cim))
{
xf86MsgVerb(X_INFO, 3, "Module \"%s\" already built-in\n", m);
return (ModuleDescPtr) 1;
ret = (ModuleDescPtr) 1;
goto LoadModule_exit;
}
if (!name) {