Skip to content

Commit 86d500a

Browse files
committed
Fix memory leak
1 parent 30ad48a commit 86d500a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Dancer2/Core/App.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1213,7 +1213,7 @@ sub compile_hooks {
12131213
# Don't execute the hook_exception hook if the exception
12141214
# has been generated from a hook exception handler itself,
12151215
# thus preventing potentially recursive code.
1216-
$self->execute_hook( 'core.app.hook_exception', $app, $err )
1216+
$app->execute_hook( 'core.app.hook_exception', $app, $err )
12171217
unless $position eq 'core.app.hook_exception';
12181218
my $is_halted = $app->response->is_halted; # Capture before cleanup
12191219
# We can't cleanup if we're in the hook for a hook

0 commit comments

Comments
 (0)