changeset 10678:c647f01d6dbd v8.0.0229

patch 8.0.0229: local 'formatprg' option value leaks commit https://github.com/vim/vim/commit/24a2d416ec261829ff7fd29f7b66739c96dd6513 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 24 17:48:36 2017 +0100 patch 8.0.0229: local 'formatprg' option value leaks Problem: When freeing a buffer the local value of the 'formatprg' option is not cleared. Solution: Add missing change.
author Christian Brabandt <cb@256bit.org>
date Tue, 24 Jan 2017 18:00:05 +0100
parents 7115ccc512be
children 016727751b95
files src/buffer.c src/version.c
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -2153,6 +2153,7 @@ free_buf_options(
 #if defined(FEAT_CRYPT)
     clear_string_option(&buf->b_p_cm);
 #endif
+    clear_string_option(&buf->b_p_fp);
 #if defined(FEAT_EVAL)
     clear_string_option(&buf->b_p_fex);
 #endif
--- a/src/version.c
+++ b/src/version.c
@@ -765,6 +765,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    229,
+/**/
     228,
 /**/
     227,