forked from aniani/vim
patch 8.0.0365: might free a dict item that wasn't allocated
Problem: Might free a dict item that wasn't allocated.
Solution: Call dictitem_free(). (Nikolai Pavlov) Use this for
b:changedtick.
This commit is contained in:
@@ -88,8 +88,7 @@ dict_free_contents(dict_T *d)
|
||||
* something recursive causing trouble. */
|
||||
di = HI2DI(hi);
|
||||
hash_remove(&d->dv_hashtab, hi);
|
||||
clear_tv(&di->di_tv);
|
||||
vim_free(di);
|
||||
dictitem_free(di);
|
||||
--todo;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user