patch 8.2.0177: memory leak in get_tags()
Problem: Memory leak in get_tags().
Solution: Free matches when finding a pseudo-tag line. (Dominique Pelle,
closes #5553)
diff --git a/src/tag.c b/src/tag.c
index 4c6dadc..cfc300e 100644
--- a/src/tag.c
+++ b/src/tag.c
@@ -3980,7 +3980,10 @@
// Skip pseudo-tag lines.
if (STRNCMP(tp.tagname, "!_TAG_", 6) == 0)
+ {
+ vim_free(matches[i]);
continue;
+ }
if ((dict = dict_alloc()) == NULL)
ret = FAIL;
diff --git a/src/version.c b/src/version.c
index fbb2ca5..e6935a2 100644
--- a/src/version.c
+++ b/src/version.c
@@ -743,6 +743,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 177,
+/**/
176,
/**/
175,