mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-04-20 01:20:49 +02:00
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:
parent
21f58a2b0d
commit
773e4890b3
1 changed files with 2 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue