From 967865393c08f53c70da9c8cd2824978f2601aa4 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Wed, 24 Jan 2007 20:20:48 -0800 Subject: [PATCH] Plug memory leak in doLoadModule() (cherry picked from cf7ca9d09cba14d107152a5179de38e5ef7bd784 commit) --- hw/xfree86/loader/loadmod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);