summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2007-04-28 21:26:41 +0000
committerChris Wilson <chris+github@qwirx.com>2007-04-28 21:26:41 +0000
commit5f500e07ceaf3e2cb67b6809d266af281e809b99 (patch)
tree9059c1df285fc1b2550a71733f876ea0e617e27a /lib
parent277fe6e623add50d764215a8952453977df55321 (diff)
Fix rare memory leak. (refs #3, merges part of [1514])
Diffstat (limited to 'lib')
-rw-r--r--lib/win32/emu.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/win32/emu.cpp b/lib/win32/emu.cpp
index 818c6a6b..7f665629 100644
--- a/lib/win32/emu.cpp
+++ b/lib/win32/emu.cpp
@@ -1518,6 +1518,7 @@ char* emu_getcwd(char* pBuffer, int BufSize)
if (result <= 0 || result >= len)
{
errno = EACCES;
+ delete [] pWide;
return NULL;
}