diff options
author | Jesse Adkins <jesserayadkins@gmail.com> | 2010-08-04 09:21:31 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2010-08-27 19:05:35 -0400 |
commit | 18b62e0479f15e965611880ada6e0195367df025 (patch) | |
tree | dcdd301aa6faceed0f3ec2cdbb7fa31c4e44c76a | |
parent | 4f04fd595e82226f1d91226a41bb98ed3d940b37 (diff) |
xfree86: Fix leaks in OpenConfigFile and OpenConfigDir
[mattst88: fixed whitespace and a missing semicolon]
Signed-off-by: Jesse Adkins <jesserayadkins@gmail.com>
Signed-off-by: Matt Turner <mattst88@gmail.com>
-rw-r--r-- | hw/xfree86/parser/scan.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/xfree86/parser/scan.c b/hw/xfree86/parser/scan.c index 531214350..4163a3a6b 100644 --- a/hw/xfree86/parser/scan.c +++ b/hw/xfree86/parser/scan.c @@ -819,6 +819,7 @@ OpenConfigFile(const char *path, const char *cmdline, const char *projroot, } } + free(pathcopy); if (file) { configFiles[numFiles].file = file; configFiles[numFiles].path = strdup(filepath); @@ -927,6 +928,7 @@ OpenConfigDir(const char *path, const char *cmdline, const char *projroot, } } + free(pathcopy); return dirpath; } |