diff src/buffer.c @ 13121:3321582cae78 v8.0.1435

patch 8.0.1435: memory leak in test_arabic commit https://github.com/vim/vim/commit/501383236d203bacad758e82e47a07b877a3b63b Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 28 17:05:16 2018 +0100 patch 8.0.1435: memory leak in test_arabic Problem: Memory leak in test_arabic. Solution: Free the from and to parts. (Christian Brabandt, closes https://github.com/vim/vim/issues/2569)
author Christian Brabandt <cb@256bit.org>
date Sun, 28 Jan 2018 17:15:05 +0100
parents 197a08152ad5
children 6559e98f3e74
line wrap: on
line diff
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -2212,6 +2212,7 @@ free_buf_options(
     clear_string_option(&buf->b_p_isk);
 #ifdef FEAT_KEYMAP
     clear_string_option(&buf->b_p_keymap);
+    keymap_clear(&buf->b_kmap_ga);
     ga_clear(&buf->b_kmap_ga);
 #endif
 #ifdef FEAT_COMMENTS