From c891413f6c82257777eb3673827eea3ee47f0501 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Tue, 11 Apr 2017 09:48:47 +0200 Subject: [PATCH] [Yaml] release memory after parsing --- src/Symfony/Component/Yaml/Parser.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Symfony/Component/Yaml/Parser.php b/src/Symfony/Component/Yaml/Parser.php index e4d7fe2839..90a2f34e02 100644 --- a/src/Symfony/Component/Yaml/Parser.php +++ b/src/Symfony/Component/Yaml/Parser.php @@ -86,6 +86,12 @@ class Parser mb_internal_encoding($mbEncoding); } + $this->lines = array(); + $this->currentLine = ''; + $this->refs = array(); + $this->skippedLineNumbers = array(); + $this->locallySkippedLineNumbers = array(); + if (null !== $e) { throw $e; }