Skip to content

Commit f9bafc4

Browse files
committed
[Yaml] release memory after parsing
1 parent 49c2554 commit f9bafc4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Parser.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ public function parse($value, $exceptionOnInvalidType = false, $objectSupport =
8686
mb_internal_encoding($mbEncoding);
8787
}
8888

89+
$this->lines = array();
90+
$this->currentLine = '';
91+
$this->refs = array();
92+
$this->skippedLineNumbers = array();
93+
$this->locallySkippedLineNumbers = array();
94+
8995
if (null !== $e) {
9096
throw $e;
9197
}

0 commit comments

Comments
 (0)