# HG changeset patch # User Christian Brabandt # Date 1456264805 -3600 # Node ID dc72f4a463e4fd7ea1866b76c10ada1da7035d13 # Parent 0b7d02552c6eddd3e00182d30890ad230527bfe6 commit https://github.com/vim/vim/commit/42dd7aee41ffcc5afdbf9bb83d70e7123261cada Author: Bram Moolenaar Date: Tue Feb 23 22:50:12 2016 +0100 patch 7.4.1410 Problem: Leaking memory in cscope interface. Solution: Free memory when no tab is found. (Christian Brabandt) diff --git a/src/if_cscope.c b/src/if_cscope.c --- a/src/if_cscope.c +++ b/src/if_cscope.c @@ -2062,7 +2062,10 @@ cs_print_tags_priv(char **matches, char 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); diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -749,6 +749,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1410, +/**/ 1409, /**/ 1408,