Skip to content

Commit 1c2836e

Browse files
committed
patch 7.4.922
Problem: Leaking memory with ":helpt {dir-not-exists}". Solution: Free dirname. (Dominique Pelle)
1 parent cd1c55f commit 1c2836e

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/ex_cmds.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6574,6 +6574,7 @@ ex_helptags(eap)
65746574
if (dirname == NULL || !mch_isdir(dirname))
65756575
{
65766576
EMSG2(_("E150: Not a directory: %s"), eap->arg);
6577+
vim_free(dirname);
65776578
return;
65786579
}
65796580

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ static char *(features[]) =
741741

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
922,
744746
/**/
745747
921,
746748
/**/

0 commit comments

Comments
 (0)