8000 [Cache] Avoid memory leak in TraceableAdapter::reset() · symfony/symfony@15a8610 · GitHub
[go: up one dir, main page]

Skip to content

Commit 15a8610

Browse files
committed
[Cache] Avoid memory leak in TraceableAdapter::reset()
1 parent 932a4f8 commit 15a8610

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/Symfony/Component/Cache/Adapter/TraceableAdapter.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -191,15 +191,11 @@ public function prune()
191191
*/
192192
public function reset()
193193
{
194-
if (!$this->pool instanceof ResettableInterface) {
195-
return;
196-
}
197-
$event = $this->start(__FUNCTION__);
198-
try {
194+
if ($this->pool instanceof ResettableInterface) {
199195
$this->pool->reset();
200-
} finally {
201-
$event->end = microtime(true);
202196
}
197+
198+
$this->clearCalls();
203199
}
204200

205201
public function getCalls()

0 commit comments

Comments
 (0)
0