From b8ba6128aa595ef1faa86ca4c69f5a3e7daa7c67 Mon Sep 17 00:00:00 2001 From: Nakidai Date: Mon, 31 Mar 2025 17:29:52 +0300 Subject: Free file buffer after lexing --- cccl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cccl.c b/cccl.c index c574a87..477e235 100644 --- a/cccl.c +++ b/cccl.c @@ -2,6 +2,7 @@ #include #include +#include void cccl(struct cccl_File file) @@ -12,6 +13,8 @@ void cccl(struct cccl_File file) if (verbose) fprintf(stderr, "Read: %lu\n", tokens_amount); + free(file.buffer); + struct cccl_Node *parsed = cccl_parse(tokens, tokens_amount, 0, 0); struct cccl_Variables scope = {0}; -- cgit 1.4.1