Skip to content

Commit

Permalink
[Cache] Avoid memory leak in TraceableAdapter::reset()
Browse files Browse the repository at this point in the history
  • Loading branch information
lyrixx committed Apr 15, 2020
1 parent 932a4f8 commit 1e6edea
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/Symfony/Component/Cache/Adapter/TraceableAdapter.php
Expand Up @@ -191,14 +191,8 @@ public function prune()
*/
public function reset()
{
if (!$this->pool instanceof ResettableInterface) {
return;
}
$event = $this->start(__FUNCTION__);
try {
if ($this->pool instanceof ResettableInterface) {
$this->pool->reset();
} finally {
$event->end = microtime(true);
}
}

Expand Down

0 comments on commit 1e6edea

Please sign in to comment.