diff --git a/src/text.c b/src/text.c index 3cee8f20..f7a6c1e0 100644 --- a/src/text.c +++ b/src/text.c @@ -2939,6 +2939,8 @@ void do_linter(void) pointer++; } + free(lintings); + /* Process the end of the linting process. */ waitpid(pid_lint, &lint_status, 0); @@ -2947,8 +2949,6 @@ void do_linter(void) return; } - free(lintings); - if (parsesuccess == 0) { statusline(HUSH, _("Got 0 parsable lines from command: %s"), openfile->syntax->linter);