diff src/buffer.c @ 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 01a5f64a7a20
children 5780bd3a5a7e
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