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>
(cherry picked from commit 1c101d75d4)

Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Alan Coopersmith 2009-03-26 22:25:08 -07:00 committed by Keith Packard
parent 21f58a2b0d
commit 773e4890b3

View File

@ -867,7 +867,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) {