patch 8.2.4472: Coverity warns for use of a freed function name
Problem: Coverity warns for use of a freed function name.
Solution: Only check an autoload name when is prefixed.
diff --git a/src/userfunc.c b/src/userfunc.c
index ed2fb86..03b310d 100644
--- a/src/userfunc.c
+++ b/src/userfunc.c
@@ -4624,7 +4624,7 @@
{
char_u *prefixed = may_prefix_autoload(name);
- if (prefixed != NULL)
+ if (prefixed != NULL && prefixed != name)
{
v = find_var(prefixed, &ht, TRUE);
if (v != NULL)
diff --git a/src/version.c b/src/version.c
index 1531a9c..e0384c8 100644
--- a/src/version.c
+++ b/src/version.c
@@ -755,6 +755,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 4472,
+/**/
4471,
/**/
4470,