Skip to content

Commit 841409b

Browse files
committed
fix memory leak introduced in 0.43
1 parent 9c20755 commit 841409b

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

Changes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
Revision history for the Perl extension Win32.
22

3+
0.44 [2011-01-12]
4+
- fix memory leak introduced in 0.43
5+
36
0.43 [2011-01-12]
47
- fix a few potential buffer overrun bugs reported by Alex Davies.
58
[perl#78710]

META.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--- #YAML:1.0
22
name: Win32
33
abstract: Interfaces to some Win32 API Functions
4-
version: 0.43
4+
version: 0.44
55
author:
66
- Jan Dubois <[email protected]>
77
license: perl

Win32.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ package Win32;
88
require DynaLoader;
99

1010
@ISA = qw|Exporter DynaLoader|;
11-
$VERSION = '0.43';
11+
$VERSION = '0.44';
1212
$XS_VERSION = $VERSION;
1313
$VERSION = eval $VERSION;
1414

Win32.xs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1524,6 +1524,7 @@ XS(w32_GetLongPathName)
15241524
wcscpy(wide_path, wstr);
15251525
long_path = my_longpathW(wide_path);
15261526
if (long_path) {
1527+
Safefree(wstr);
15271528
ST(0) = wstr_to_sv(aTHX_ long_path);
15281529
XSRETURN(1);
15291530
}

0 commit comments

Comments
 (0)