10000 [SecurityBundle] Fixed a memory leak in SecurityBundle\Security\FirewallMap by udavka · Pull Request #22605 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[SecurityBundle] Fixed a memory leak in SecurityBundle\Security\FirewallMap #22605

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension .php  (2)

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Removed not needed changes
  • Loading branch information
udavka committed May 13, 2017
commit 8abfd9603442259ba83bcbc325532574820ba121
2 changes: 0 additions & 2 deletions src/Symfony/Component/Security/Http/Firewall.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ public function onKernelFinishRequest(FinishRequestEvent $event)
{
$request = $event->getRequest();

$this->map->detachListeners($event->getRequest());

if (isset($this->exceptionListeners[$request])) {
$this->exceptionListeners[$request]->unregister($this->dispatcher);
unset($this->exceptionListeners[$request]);
Expand Down
12 changes: 0 additions & 12 deletions src/Symfony/Component/Security/Http/FirewallMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,4 @@ public function getListeners(Request $request)

return array(array(), null);
}

/**
* {@inheritdoc}
*/
public function detachListeners(Request $request)
{
foreach ($this->map as $key => $elements) {
if (null === $elements[0] || $elements[0]->matches($request)) {
unset($this->map[$key]);
}
}
}
}
0