You need to sign in or sign up before continuing.
Commit d4118efe authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

Going to the next item in the list before freeing the current one.

This fixes Savannah bug #46796.


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5631 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 7 additions and 1 deletion
+7 -1
2016-02-11 Benno Schulenberg <bensberg@justemail.net>
* src/text.c (do_linter): Go to the next item in the list before
freeing the current one. This fixes Savannah bug #46796.
2016-02-10 Benno Schulenberg <bensberg@justemail.net> 2016-02-10 Benno Schulenberg <bensberg@justemail.net>
* src/text.c (discard_until): Prevent a chain of editing actions from * src/text.c (discard_until): Prevent a chain of editing actions from
continuing after a discard. This fixes Savannah bug #47104. continuing after a discard. This fixes Savannah bug #47104.
......
...@@ -3198,7 +3198,9 @@ void do_linter(void) ...@@ -3198,7 +3198,9 @@ void do_linter(void)
#ifndef NANO_TINY #ifndef NANO_TINY
free_lints_and_return: free_lints_and_return:
#endif #endif
for (tmplint = lints; tmplint != NULL; tmplint = tmplint->next) { for (curlint = lints; curlint != NULL;) {
tmplint = curlint;
curlint = curlint->next;
free(tmplint->msg); free(tmplint->msg);
free(tmplint->filename); free(tmplint->filename);
free(tmplint); free(tmplint);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment