Permalink
Browse files

Fixing a potential memory leak

  • Loading branch information...
1 parent 393e76b commit 8c27b14d0cd487150b7bbc1cb20fbef3d79ba1a6 @frodwith committed Oct 29, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Plack/Server/POE.pm
@@ -157,7 +157,7 @@ sub on_client_input {
my $writer; $writer = Plack::Util::inline_object(
write => $w,
- close => $c,
+ close => sub { $c->(@_); undef $writer },
poll_cb => sub {
my $get = shift;
($heap->{client_flush} = sub {

0 comments on commit 8c27b14

Please sign in to comment.