summaryrefslogtreecommitdiff
path: root/src/lib/syntax.c
diff options
context:
space:
mode:
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;
- }
}
}