summaryrefslogtreecommitdiff
path: root/src/lib/syntax.c
diff options
context:
space:
mode:
authorpeter <peter@pmikkelsen.com>2026-08-30 14:46:38 +0000
committerpeter <peter@pmikkelsen.com>2026-08-30 14:46:38 +0000
commit04827577ea502a9f0edc69e00e008751c8119cbc (patch)
treee09a4f12628b85c4bc3713b00bb0bf8bb5291400 /src/lib/syntax.c
parent2261ffa04ddf30a7c8eae6e64129b293fc8bffd9 (diff)
Remove a lot of functions for manually freeing memory (they were not implemented)
FossilOrigin-Name: 693765728e62a74a0ab15d657f7d1dd83702a9371fb042dafe6250f84a252959
Diffstat (limited to 'src/lib/syntax.c')
-rw-r--r--src/lib/syntax.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/syntax.c b/src/lib/syntax.c
index 16d0363..75d6c14 100644
--- a/src/lib/syntax.c
+++ b/src/lib/syntax.c
@@ -258,10 +258,8 @@ scan_string(struct aplwc *aplwc, struct string *text, int oneline)
continue;
for(i++; i < n; i++){
- if(tokens->tokens[i].tag != TOKEN_TAG_NEWLINE){
- memory_free_token_list(aplwc, tokens);
+ if(tokens->tokens[i].tag != TOKEN_TAG_NEWLINE)
return NULL;
- }
}
}