Skip to content

Commit bb385ec

Browse files
authored
Avoid duplicate output buffer leaking memory (#107)
1 parent 9edaca9 commit bb385ec

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Bridges/HttpKernel.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function handle(ServerRequestInterface $request)
104104
if ($this->application instanceof TerminableInterface) {
105105
$this->application->terminate($syRequest, $syResponse);
106106
}
107-
107+
108108
if ($this->application instanceof Kernel) {
109109
$this->application->terminate($syRequest, $syResponse);
110110
}
@@ -291,7 +291,6 @@ protected function mapResponse(SymfonyResponse $syResponse, $stdout='')
291291
$content = @ob_get_clean();
292292
}
293293
else {
294-
ob_start();
295294
$content = $syResponse->getContent();
296295
@ob_end_flush();
297296
}

0 commit comments

Comments
 (0)