# HG changeset patch # User Bram Moolenaar # Date 1612377905 -3600 # Node ID 7c257af6ccf5ee8e50e3a7899dfa575f9136c79d # Parent 6e5a62752f9321eb422728ec28fd351c3b5eaaba patch 8.2.2457: Coverity warns for memory leak Commit: https://github.com/vim/vim/commit/4dba04256b8a49b201d685217d3d7abc4988f090 Author: Bram Moolenaar Date: Wed Feb 3 19:35:13 2021 +0100 patch 8.2.2457: Coverity warns for memory leak Problem: Coverity warns for memory leak. Solution: Free memory when out of memory. diff --git a/src/if_cscope.c b/src/if_cscope.c --- a/src/if_cscope.c +++ b/src/if_cscope.c @@ -1813,7 +1813,10 @@ cs_file_results(FILE *f, int *nummatches context = alloc(strlen(cntx)+5); if (context == NULL) + { + vim_free(fullname); continue; + } if (strcmp(cntx, "")==0) strcpy(context, "<>"); diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2457, +/**/ 2456, /**/ 2455,