]> granicus.if.org Git - vim/commitdiff
patch 7.4.2310 v7.4.2310
authorBram Moolenaar <Bram@vim.org>
Fri, 2 Sep 2016 20:18:49 +0000 (22:18 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 2 Sep 2016 20:18:49 +0000 (22:18 +0200)
Problem:    Accessing freed memory when a timer does not repeat.
Solution:   Free after removing it. (Dominique Pelle)

src/ex_cmds2.c
src/version.c

index a76b055220dfa1ed85c73a32d5d883ba8838989a..acaef9fcef4b524963d2d8baa5d004a82d8acd94 100644 (file)
@@ -1222,8 +1222,8 @@ check_due_timer(void)
                }
                else
                {
-                   free_timer(timer);
                    remove_timer(timer);
+                   free_timer(timer);
                }
                /* the callback may do anything, start all over */
                break;
index 5fd33ecfa6c4eb173f5d6a2a6e67150ed814b801..784b405ae8b2a2b19817ba2dc507478156ddd862 100644 (file)
@@ -763,6 +763,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2310,
 /**/
     2309,
 /**/