]> granicus.if.org Git - vim/commitdiff
patch 8.0.0229: local 'formatprg' option value leaks v8.0.0229
authorBram Moolenaar <Bram@vim.org>
Tue, 24 Jan 2017 16:48:36 +0000 (17:48 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 24 Jan 2017 16:48:36 +0000 (17:48 +0100)
Problem:    When freeing a buffer the local value of the 'formatprg' option is
            not cleared.
Solution:   Add missing change.

src/buffer.c
src/version.c

index b79e277a0108aa9439171c8be739d215140c6569..b2c914d7a8f9b8a8dc0c18e42fdf771cac33bfdb 100644 (file)
@@ -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
index 6d3b8483f77fc66308080e4fbdab686fb8880355..829b3b94c89e5584e0d80e5e02da06003cb0455d 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    229,
 /**/
     228,
 /**/