1
0
forked from aniani/vim

patch 7.4.2359

Problem:    Memory leak in timer_start().
Solution:   Check the right field to be NULL.
This commit is contained in:
Bram Moolenaar
2016-09-10 14:27:30 +02:00
parent d47d83745f
commit 26fe0d5691
3 changed files with 7 additions and 5 deletions

View File

@@ -12429,7 +12429,7 @@ f_timer_start(typval_T *argvars, typval_T *rettv)
free_callback(callback, partial);
else
{
if (timer->tr_partial == NULL)
if (partial == NULL)
timer->tr_callback = vim_strsave(callback);
else
/* pointer into the partial */