diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-03-26 22:25:08 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-04-01 15:56:55 -0700 |
commit | 1c101d75d4855b2698e3fc8d2dd662f20585812f (patch) | |
tree | 448bc19a4738b965735cabb0c70d5b14856e3304 | |
parent | 9180081ec32b6c655d193de4c89b59d222a72579 (diff) |
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>
-rw-r--r-- | hw/xfree86/loader/loadmod.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/xfree86/loader/loadmod.c b/hw/xfree86/loader/loadmod.c index dbf6c2e46..fccb3b1ae 100644 --- a/hw/xfree86/loader/loadmod.c +++ b/hw/xfree86/loader/loadmod.c | |||
@@ -868,7 +868,8 @@ doLoadModule(const char *module, const char *path, const char **subdirlist, | |||
868 | if (!strcmp (m, *cim)) | 868 | if (!strcmp (m, *cim)) |
869 | { | 869 | { |
870 | xf86MsgVerb(X_INFO, 3, "Module \"%s\" already built-in\n", m); | 870 | xf86MsgVerb(X_INFO, 3, "Module \"%s\" already built-in\n", m); |
871 | return (ModuleDescPtr) 1; | 871 | ret = (ModuleDescPtr) 1; |
872 | goto LoadModule_exit; | ||
872 | } | 873 | } |
873 | 874 | ||
874 | if (!name) { | 875 | if (!name) { |