summaryrefslogtreecommitdiffstats
path: root/src/tag.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tag.c')
-rw-r--r--src/tag.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tag.c b/src/tag.c
index 4c6dadcf21..cfc300e465 100644
--- a/src/tag.c
+++ b/src/tag.c
@@ -3980,7 +3980,10 @@ get_tags(list_T *list, char_u *pat, char_u *buf_fname)
// Skip pseudo-tag lines.
if (STRNCMP(tp.tagname, "!_TAG_", 6) == 0)
+ {
+ vim_free(matches[i]);
continue;
+ }
if ((dict = dict_alloc()) == NULL)
ret = FAIL;