To: vim_dev@googlegroups.com Subject: Patch 8.2.2457 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.2457 Problem: Coverity warns for memory leak. Solution: Free memory when out of memory. Files: src/if_cscope.c *** ../vim-8.2.2456/src/if_cscope.c 2020-10-24 20:49:37.498683038 +0200 --- src/if_cscope.c 2021-02-03 19:34:05.650762254 +0100 *************** *** 1813,1819 **** --- 1813,1822 ---- context = alloc(strlen(cntx)+5); if (context == NULL) + { + vim_free(fullname); continue; + } if (strcmp(cntx, "")==0) strcpy(context, "<>"); *** ../vim-8.2.2456/src/version.c 2021-02-03 19:31:25.387275171 +0100 --- src/version.c 2021-02-03 19:34:56.498599512 +0100 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 2457, /**/ -- An extraordinary TALL KNIGHT in all black (possibly John with Mike on his shoulders) walks out from the dark trees. He is extremely fierce and gruesome countenance. He walks towards KING ARTHUR and PATSY, who are wazzing like mad. (Salopian slang, meaning very scared. almost to the point of wetting oneself, e.g. before an important football match or prior to a postering. Salopian slang meaning a beating by the school praeposters. Sorry about the Salopian slant to this stage direction - Ed.) "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///