Skip to content

Commit

Permalink
fixed small memory leak in Hypnotoad that only shows when Perl is com…
Browse files Browse the repository at this point in the history
…piled with -DPERL_USE_SAFE_PUTENV (closes #444)
  • Loading branch information
kraih committed Jan 15, 2013
1 parent da9c22a commit 7276c08
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Changes
@@ -1,6 +1,8 @@

3.81 2013-01-16
- Improved documentation.
- Fixed small memory leak in Hypnotoad that only shows when Perl is compiled
with -DPERL_USE_SAFE_PUTENV. (lewoberst)

3.80 2013-01-15
- Deprecated testing WebSocket messages without calling
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/Server/Hypnotoad.pm
Expand Up @@ -182,7 +182,7 @@ sub _manage {
$self->{log}->info("Upgrade successful, stopping $ENV{HYPNOTOAD_PID}.");
kill 'QUIT', $ENV{HYPNOTOAD_PID};
}
$ENV{HYPNOTOAD_PID} = $$;
$ENV{HYPNOTOAD_PID} = $$ unless ($ENV{HYPNOTOAD_PID} // '') eq $$;

# Check heartbeat
$self->_heartbeat;
Expand Down
2 changes: 2 additions & 0 deletions lib/Mojolicious.pm
Expand Up @@ -776,6 +776,8 @@ James Duncan
Jan Jona Javorsek
Jan Schmidt
Jaroslav Muhin
Jesse Vincent
Expand Down

0 comments on commit 7276c08

Please sign in to comment.