tweaks: free some memory before a possible error exit [coverity]
parent
5a6029a938
commit
2b2736d41a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue