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
index bbb429a..f52316f 100644
--- a/src/if_cscope.c
+++ b/src/if_cscope.c
@@ -1813,7 +1813,10 @@
context = alloc(strlen(cntx)+5);
if (context == NULL)
+ {
+ vim_free(fullname);
continue;
+ }
if (strcmp(cntx, "<global>")==0)
strcpy(context, "<<global>>");
diff --git a/src/version.c b/src/version.c
index 804899f..ab00e37 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2457,
+/**/
2456,
/**/
2455,