projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fcdbd3
)
Oops, fix memory leak just introduced by 3fcdbd32b2
author
Steve Hay
<steve.m.hay@googlemail.com>
Fri, 16 Nov 2012 14:21:06 +0000
(14:21 +0000)
committer
Steve Hay
<steve.m.hay@googlemail.com>
Fri, 16 Nov 2012 14:21:06 +0000
(14:21 +0000)
win32/win32.c
patch
|
blob
|
history
diff --git
a/win32/win32.c
b/win32/win32.c
index
cc2f095
..
c14b11b
100644
(file)
--- a/
win32/win32.c
+++ b/
win32/win32.c
@@
-4242,8
+4242,10
@@
ansify_path(void)
wide_path = (WCHAR*)win32_malloc(len*sizeof(WCHAR));
while (wide_path) {
size_t newlen = GetEnvironmentVariableW(L"PATH", wide_path, len);
- if (newlen == 0)
+ if (newlen == 0) {
+ win32_free(wide_path);
return;
+ }
if (newlen < len)
break;
len = newlen;