nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 2b2736d41a6eb8f3d5c4bce262cd92671626fcaf
parent 5a6029a938579df45e1ac73c7a7aa052a003c617
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Thu, 11 Apr 2019 09:55:18 +0200

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

Diffstat:
Msrc/text.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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);