Skip to content

Commit 4a5f7a3

Browse files
committed
Fix another memory leak
1 parent ce404ff commit 4a5f7a3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +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.
45

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

lib/Git/PurePerl/Object.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ has 'kind' => ( is => 'ro', isa => 'ObjectKind', required => 1 );
99
has 'size' => ( is => 'ro', isa => 'Int', required => 1 );
1010
has 'content' => ( is => 'rw', isa => 'Str', required => 1 );
1111
has 'sha1' => ( is => 'ro', isa => 'Str', required => 1 );
12-
has 'git' => ( is => 'ro', isa => 'Git::PurePerl', required => 1 );
12+
has 'git' => ( is => 'ro', isa => 'Git::PurePerl', required => 1, weak_ref => 1 );
1313

1414
__PACKAGE__->meta->make_immutable;
1515

0 commit comments

Comments
 (0)