# HG changeset patch # User Bram Moolenaar # Date 1662206404 -7200 # Node ID f4a7831fa352f81706b882ff35000621ebfa1c5e # Parent 4d69338df279ebdd2b36a5fe63c12873647fde15 patch 9.0.0368: old Coverity warning for using NULL pointer Commit: https://github.com/vim/vim/commit/89083466fa565bea22832687ec5fe89a70a3b8f7 Author: Bram Moolenaar Date: Sat Sep 3 12:59:19 2022 +0100 patch 9.0.0368: old Coverity warning for using NULL pointer Problem: Old Coverity warning for using NULL pointer. Solution: Bail out if dictionary allocation fails. diff --git a/src/tag.c b/src/tag.c --- a/src/tag.c +++ b/src/tag.c @@ -4384,7 +4384,11 @@ get_tags(list_T *list, char_u *pat, char } if ((dict = dict_alloc()) == NULL) + { ret = FAIL; + vim_free(matches[i]); + break; + } if (list_append_dict(list, dict) == FAIL) ret = FAIL; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -708,6 +708,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 368, +/**/ 367, /**/ 366,