# HG changeset patch # User Bram Moolenaar # Date 1645825503 -3600 # Node ID 8e630053c59c4a625f9df19502675cea2d102c4b # Parent 71a9bedd8211b8788752325177f84e1e431b4868 patch 8.2.4472: Coverity warns for use of a freed function name Commit: https://github.com/vim/vim/commit/9383a3afb6a2b7ba6a2739a66a68cc8e1162f389 Author: Bram Moolenaar Date: Fri Feb 25 21:35:17 2022 +0000 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 --- a/src/userfunc.c +++ b/src/userfunc.c @@ -4624,7 +4624,7 @@ define_function(exarg_T *eap, char_u *na { 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 --- a/src/version.c +++ b/src/version.c @@ -755,6 +755,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4472, +/**/ 4471, /**/ 4470,