summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2007-01-24 20:20:48 -0800
committerEric Anholt <eric@anholt.net>2007-02-13 13:25:46 -0800
commit967865393c08f53c70da9c8cd2824978f2601aa4 (patch)
tree3a195e349958669be90c6ec0c80da2f1c5a5dd7e /hw
parent46e3ed88ccc738e6b99d0fc957617b4345392237 (diff)
Plug memory leak in doLoadModule()
(cherry picked from cf7ca9d09cba14d107152a5179de38e5ef7bd784 commit)
Diffstat (limited to 'hw')
-rw-r--r--hw/xfree86/loader/loadmod.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xfree86/loader/loadmod.c b/hw/xfree86/loader/loadmod.c
index 12f5dc9cc..ec0f181db 100644
--- a/hw/xfree86/loader/loadmod.c
+++ b/hw/xfree86/loader/loadmod.c
@@ -903,7 +903,7 @@ doLoadModule(const char *module, const char *path, const char **subdirlist,
* check the elements in the path
*/
if (PathIsAbsolute(module))
- xstrdup(module);
+ found = xstrdup(module);
path_elem = pathlist;
while (!found && *path_elem != NULL) {
found = FindModule(m, *path_elem, subdirlist, patterns);