Fixed memory leak
Christian Hansen [Thu, 26 May 2005 03:24:55 +0000 (03:24 +0000)]
lib/Catalyst/Engine.pm

index fd510b3..17b0d4a 100644 (file)
@@ -167,7 +167,7 @@ sub execute {
             push @{ $c->{stats} }, [ $action, sprintf( '%fs', $elapsed ) ];
             $c->state(@state);
         }
-        else { $c->state( &$code( $class, $c, @{ $c->req->args } ) ) }
+        else { $c->state( &$code( $class, $c, @{ $c->req->args } ) ? 1 : 0 ) }
     };
 
     if ( my $error = $@ ) {