Permalink
Browse files

patch 7.4.2310

Problem:    Accessing freed memory when a timer does not repeat.
Solution:   Free after removing it. (Dominique Pelle)
  • Loading branch information...
1 parent 11fbc28 commit a5d4121eed942bbbc672a7b00bf20866c17dc858 @brammool brammool committed Sep 2, 2016
Showing with 3 additions and 1 deletion.
  1. +1 −1 src/ex_cmds2.c
  2. +2 −0 src/version.c
View
@@ -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;
View
@@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2310,
+/**/
2309,
/**/
2308,

0 comments on commit a5d4121

Please sign in to comment.