# HG changeset patch # User Bram Moolenaar # Date 1546353006 -3600 # Node ID 0eed23d9733a2f99abaefa6083bd8854e0d94a73 # Parent fb2b29e6f5baa444467e29b843e019556be4d29e patch 8.1.0674: leaking memory when updating a single line commit https://github.com/vim/vim/commit/6d5b4f566a2a50c1de7300336e9e4f5e761500a8 Author: Bram Moolenaar Date: Tue Jan 1 15:15:47 2019 +0100 patch 8.1.0674: leaking memory when updating a single line Problem: Leaking memory when updating a single line. Solution: Do not call start_search_hl() twice. diff --git a/src/screen.c b/src/screen.c --- a/src/screen.c +++ b/src/screen.c @@ -961,14 +961,10 @@ update_single_line(win_T *wp, linenr_T l screen_start(); /* not sure of screen cursor */ # ifdef FEAT_SEARCH_EXTRA init_search_hl(wp); - start_search_hl(); prepare_search_hl(wp, lnum); # endif win_line(wp, lnum, row, row + wp->w_lines[j].wl_size, FALSE, FALSE); -# if defined(FEAT_SEARCH_EXTRA) - end_search_hl(); -# endif break; } row += wp->w_lines[j].wl_size; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -800,6 +800,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 674, +/**/ 673, /**/ 672,