From 24a2d416ec261829ff7fd29f7b66739c96dd6513 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 24 Jan 2017 17:48:36 +0100 Subject: [PATCH] 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. --- src/buffer.c | 1 + src/version.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/buffer.c b/src/buffer.c index b79e277a01..b2c914d7a8 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 6d3b8483f7..829b3b94c8 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, /**/