summaryrefslogtreecommitdiffstats
path: root/src/if_cscope.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/if_cscope.c')
-rw-r--r--src/if_cscope.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/if_cscope.c b/src/if_cscope.c
index b5ca6148b9..2f75390b9a 100644
--- a/src/if_cscope.c
+++ b/src/if_cscope.c
@@ -2062,7 +2062,10 @@ cs_print_tags_priv(char **matches, char **cntxts, int num_matches)
strcpy(tbuf, matches[0]);
ptag = strtok(tbuf, "\t");
if (ptag == NULL)
+ {
+ vim_free(tbuf);
return;
+ }
newsize = (int)(strlen(cstag_msg) + strlen(ptag));
buf = (char *)alloc(newsize);