summaryrefslogtreecommitdiff
path: root/cpan/Win32/Win32.xs
diff options
context:
space:
mode:
Diffstat (limited to 'cpan/Win32/Win32.xs')
-rw-r--r--cpan/Win32/Win32.xs1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpan/Win32/Win32.xs b/cpan/Win32/Win32.xs
index 9c4ea33c81..8af0e888c6 100644
--- a/cpan/Win32/Win32.xs
+++ b/cpan/Win32/Win32.xs
@@ -1524,6 +1524,7 @@ XS(w32_GetLongPathName)
wcscpy(wide_path, wstr);
long_path = my_longpathW(wide_path);
if (long_path) {
+ Safefree(wstr);
ST(0) = wstr_to_sv(aTHX_ long_path);
XSRETURN(1);
}