Plug memory leak in doLoadModule()
(cherry picked from cf7ca9d09c
commit)
This commit is contained in:
parent
46e3ed88cc
commit
967865393c
@ -903,7 +903,7 @@ doLoadModule(const char *module, const char *path, const char **subdirlist,
|
|||||||
* check the elements in the path
|
* check the elements in the path
|
||||||
*/
|
*/
|
||||||
if (PathIsAbsolute(module))
|
if (PathIsAbsolute(module))
|
||||||
xstrdup(module);
|
found = xstrdup(module);
|
||||||
path_elem = pathlist;
|
path_elem = pathlist;
|
||||||
while (!found && *path_elem != NULL) {
|
while (!found && *path_elem != NULL) {
|
||||||
found = FindModule(m, *path_elem, subdirlist, patterns);
|
found = FindModule(m, *path_elem, subdirlist, patterns);
|
||||||
|
Loading…
Reference in New Issue
Block a user