commit | 95c526e1f6d76acafee4b21f5701d6d6ac8c4b5f | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Feb 25 14:59:34 2017 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Feb 25 14:59:34 2017 +0100 |
tree | bd5c3b788fbd7995938325c97c3ff4c2d72b9b94 | |
parent | d3f78dc9ebd729475a7f24a50a91112e300d5ac9 [diff] [blame] |
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.
diff --git a/src/dict.c b/src/dict.c index 07d1000..7074305 100644 --- a/src/dict.c +++ b/src/dict.c
@@ -88,8 +88,7 @@ * 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; } }