mirror of
git://git.sv.gnu.org/nano.git
synced 2025-01-06 17:42:06 +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++;
|
pointer++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free(lintings);
|
||||||
|
|
||||||
/* Process the end of the linting process. */
|
/* Process the end of the linting process. */
|
||||||
waitpid(pid_lint, &lint_status, 0);
|
waitpid(pid_lint, &lint_status, 0);
|
||||||
|
|
||||||
@ -2947,8 +2949,6 @@ void do_linter(void)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
free(lintings);
|
|
||||||
|
|
||||||
if (parsesuccess == 0) {
|
if (parsesuccess == 0) {
|
||||||
statusline(HUSH, _("Got 0 parsable lines from command: %s"),
|
statusline(HUSH, _("Got 0 parsable lines from command: %s"),
|
||||||
openfile->syntax->linter);
|
openfile->syntax->linter);
|
||||||
|
Loading…
Reference in New Issue
Block a user