diff options
| author | 2022-09-01 10:05:06 +0200 | |
|---|---|---|
| committer | 2022-09-01 10:05:06 +0200 | |
| commit | c8a3e8a84abac37252707646a16e554173496c2b (patch) | |
| tree | 82d652c71fdaaee97d329e190894a21eb7b426ba | |
| parent | 7654fcc55b73cdecd1a57d5962da418dcaec4231 (diff) | |
fix memory leak
| -rw-r--r-- | src/parse.cff | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parse.cff b/src/parse.cff index ce32475..96ffaea 100644 --- a/src/parse.cff +++ b/src/parse.cff @@ -437,6 +437,7 @@ fn lex(P *Parser) Tok { str Vec<u8> = {}, c u8 #?, i = 0z; + defer str->clear(); while (c = chr(P)) != delim { if c == 0 or c == '\n' { fatal(P, P.tokloc, "unterminated %s literal", |