commit | 6c75a30712cb5f00d77582edddc24d0a9850d0a0 | [log] [tgz] |
---|---|---|
author | Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> | Thu Oct 09 10:11:21 2008 +0000 |
committer | Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> | Thu Oct 09 10:11:21 2008 +0000 |
tree | 30f4e1728b8e29fec0c866083978c21ed712e46d | |
parent | 10a018c285219b42d8a1cc972acf9e440a979106 [diff] [blame] |
r66862 contained memory leak.
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 6e4925b..4c580c4 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c
@@ -732,8 +732,10 @@ return FALSE; } result = GetCurrentDirectoryW(result, new_path); - if (!result) + if (!result) { + free(new_path); return FALSE; + } } if (wcsncmp(new_path, L"\\\\", 2) == 0 || wcsncmp(new_path, L"//", 2) == 0)