mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-02 22:50:09 +01:00
xfree86: plug memory leak in InitPathList.
All the failure paths were very diligent in freeing the "fullpath" temporary string, but the success case was not. All the content only got strdup()d, so it's not live memory anymore. Signed-off-by: Peter Hutterer <peter@cs.unisa.edu.au>
This commit is contained in:
parent
1bec6ad897
commit
6dc71f6b2c
1 changed files with 1 additions and 0 deletions
|
|
@ -177,6 +177,7 @@ InitPathList(const char *path)
|
|||
}
|
||||
if (list)
|
||||
list[n] = NULL;
|
||||
xfree(fullpath);
|
||||
return list;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue