aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/tag.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/tag.c')
-rw-r--r--src/nvim/tag.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nvim/tag.c b/src/nvim/tag.c
index 81af23f911..6e883a1c3d 100644
--- a/src/nvim/tag.c
+++ b/src/nvim/tag.c
@@ -923,8 +923,7 @@ end_do_tag:
*/
void tag_freematch(void)
{
- xfree(tagmatchname);
- tagmatchname = NULL;
+ XFREE_CLEAR(tagmatchname);
}
static void taglen_advance(int l)
@@ -1987,8 +1986,7 @@ void free_tag_stuff(void)
tag_freematch();
if (ptag_entry.tagname) {
- xfree(ptag_entry.tagname);
- ptag_entry.tagname = NULL;
+ XFREE_CLEAR(ptag_entry.tagname);
}
}