mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-01 01:04:01 +00:00
Plug memory leak in doLoadModule()
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user