From 6d5b4f566a2a50c1de7300336e9e4f5e761500a8 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 1 Jan 2019 15:15:47 +0100 Subject: [PATCH] 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. --- src/screen.c | 4 ---- src/version.c | 2 ++ 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/screen.c b/src/screen.c index 322efceedb..55874e99fb 100644 --- a/src/screen.c +++ b/src/screen.c @@ -961,14 +961,10 @@ update_single_line(win_T *wp, linenr_T lnum) 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 index 824091224e..17f773309d 100644 --- a/src/version.c +++ b/src/version.c @@ -799,6 +799,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 674, /**/ 673, /**/