From: Bram Moolenaar Date: Tue, 24 Jan 2017 16:48:36 +0000 (+0100) Subject: patch 8.0.0229: local 'formatprg' option value leaks X-Git-Tag: v8.0.0229 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=24a2d416ec261829ff7fd29f7b66739c96dd6513;p=vim 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. --- diff --git a/src/buffer.c b/src/buffer.c index b79e277a0..b2c914d7a 100644 --- 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 diff --git a/src/version.c b/src/version.c index 6d3b8483f..829b3b94c 100644 --- a/src/version.c +++ b/src/version.c @@ -764,6 +764,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 229, /**/ 228, /**/