tweaks: free some memory before a possible error exit [coverity]

master
Benno Schulenberg 2019-04-11 09:55:18 +02:00
parent 5a6029a938
commit 2b2736d41a
1 changed files with 2 additions and 2 deletions

View File

@ -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);