Skip to content

Commit

Permalink
Merge pull request #115 from kbucheli/fix_memory_leak
Browse files Browse the repository at this point in the history
Another bugfix for memory leak [rt.cpan.org #57990] #86
  • Loading branch information
toddr committed Mar 27, 2018
2 parents b38b7d4 + d706e65 commit 5d9cd34
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/IPC/Run.pm
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 5d9cd34

Please sign in to comment.