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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user