mirror of
git://git.sv.gnu.org/nano.git
synced 2025-01-05 00:54:26 +03:00
tweaks: free some memory before a possible error exit [coverity]
This commit is contained in:
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
Block a user