Skip to content

Commit 24a2d41

Browse files
committed
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.
1 parent abbc448 commit 24a2d41

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/buffer.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2153,6 +2153,7 @@ free_buf_options(
21532153
#if defined(FEAT_CRYPT)
21542154
clear_string_option(&buf->b_p_cm);
21552155
#endif
2156+
clear_string_option(&buf->b_p_fp);
21562157
#if defined(FEAT_EVAL)
21572158
clear_string_option(&buf->b_p_fex);
21582159
#endif

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
229,
767769
/**/
768770
228,
769771
/**/

0 commit comments

Comments
 (0)