Fix memory leak in tokenize_string_segment
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 2 Oct 2021 16:33:21 +0000 (18:33 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 2 Oct 2021 16:33:21 +0000 (18:33 +0200)
src/language/lexer/scan.c

index b6baf5ce5511538ff34a6d17956aa652edbe34f6..eed9f57c221b13f77af4647ccfe28870728fe658 100644 (file)
@@ -290,6 +290,7 @@ tokenize_string_segment__ (enum segment_type type,
   else
     {
       tokenize_error__ (token, error);
+      ss_dealloc (&out);
       return TOKENIZE_ERROR;
     }
 }