Fix tokenization double free
authorLukáš Jiřiště <jiriste@icpf.cas.cz>
Mon, 26 Aug 2024 14:16:51 +0000 (16:16 +0200)
committerLukáš Jiřiště <jiriste@icpf.cas.cz>
Mon, 26 Aug 2024 14:16:51 +0000 (16:16 +0200)
commit374f3c8f838ad2ff7e79ec25097f4bafd42ccfe4
treee0e9da54dbaa55549d013ebf4e24a8c8ed23d825
parent75a808eb49fd78d33e21ea23d16f994b7c976f30
Fix tokenization double free

When an unclosed quotes are detected, tokenization fails. This causes
double free because the current_token is appended to tokens (because
current_token.size > 0) and is freed 4 lines below. The double free
happens when the tokens vector frees its memory.
src/tokenization.c