forked from aniani/vim
patch 7.4.1410
Problem: Leaking memory in cscope interface. Solution: Free memory when no tab is found. (Christian Brabandt)
This commit is contained in:
@@ -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);
|
||||
|
@@ -748,6 +748,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1410,
|
||||
/**/
|
||||
1409,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user