summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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;
}