diff options
author | Arjan van de Ven <arjan@infradead.org> | 2008-02-18 17:52:37 +1030 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-02-18 18:14:33 +1030 |
commit | 6dc71f6b2c7ff49adb504426b4cd206e4745e1e3 (patch) | |
tree | 64509d1fdd6a5e3b7807e71d7d4f2a7474c8b340 /hw/xfree86/loader/loadmod.c | |
parent | 1bec6ad8977cefa49cc297a310f5eb0b7cd0b8bc (diff) |
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>
Diffstat (limited to 'hw/xfree86/loader/loadmod.c')
-rw-r--r-- | hw/xfree86/loader/loadmod.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/xfree86/loader/loadmod.c b/hw/xfree86/loader/loadmod.c index 650dcf35c..7f3bbe49c 100644 --- a/hw/xfree86/loader/loadmod.c +++ b/hw/xfree86/loader/loadmod.c @@ -177,6 +177,7 @@ InitPathList(const char *path) } if (list) list[n] = NULL; + xfree(fullpath); return list; } |