Skip to content

Commit 4b17745

Browse files
committed
Fix another memory leak
1 parent dd6d4b4 commit 4b17745

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGES

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Revision history for Perl module Git::PurePerl:
22

33
- Add config file handling via Config::GitLike
4-
- Fix a memory leak due to unweakened circular references.
4+
- Fix a couple of memory leaks due to unweakened circular references.
55

66
0.45 Mon 21st Dec 12:36:29 GMT 2009
77
- Be Win32 compatible (RT#52677), patch contributed by kmx.

lib/Git/PurePerl/DirectoryEntry.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use namespace::autoclean;
77
has 'mode' => ( is => 'ro', isa => 'Str', required => 1 );
88
has 'filename' => ( is => 'ro', isa => 'Str', required => 1 );
99
has 'sha1' => ( is => 'ro', isa => 'Str', required => 1 );
10-
has 'git' => ( is => 'ro', isa => 'Git::PurePerl', required => 1 );
10+
has 'git' => ( is => 'ro', isa => 'Git::PurePerl', required => 1, weak_ref => 1 );
1111

1212
sub object {
1313
my $self = shift;

0 commit comments

Comments
 (0)