aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 4fdb5b0..6656296 100644
--- a/src/main.c
+++ b/src/main.c
@@ -17,6 +17,8 @@ int main() {
if (parse_result.errmsg != NULL) {
if (Parser_peek(&parser) == EOF) goto end;
fprintf(stderr, "Parsing error: %s", parse_result.errmsg);
+ free((void*)parser.string);
+ Parser_set_readline(&parser);
continue;
}