Skip to content

Commit

Permalink
Another Bugfix for memory leak [rt.cpan.org #57990] #86
Browse files Browse the repository at this point in the history
  • Loading branch information
Konrad Bucheli committed Mar 27, 2018
1 parent b38b7d4 commit d706e65
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/IPC/Run.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1144,6 +1144,12 @@ sub DESTROY {
my IPC::Run $self = shift;
POSIX::close $self->{DEBUG_FD} if defined $self->{DEBUG_FD};
$self->{DEBUG_FD} = undef;

for my $kid ( @{$self->{KIDS}} ) {
for my $op ( @{$kid->{OPS}} ) {
delete $op->{FILTERS};
}
}
}

##
Expand Down

0 comments on commit d706e65

Please sign in to comment.