1
0
forked from aniani/vim

patch 8.2.0573: using :version twice leaks memory

Problem:    using :version twice leaks memory
Solution:   Only initialize variables once. (Dominique Pelle, closes #5917)
This commit is contained in:
Bram Moolenaar
2020-04-13 18:25:33 +02:00
parent df1956075d
commit 278e83863b
5 changed files with 30 additions and 13 deletions

View File

@@ -1258,7 +1258,7 @@ extern char *Version;
#if defined(HAVE_DATE_TIME) && defined(VMS) && defined(VAXC)
extern char longVersion[];
#else
EXTERN char *longVersion;
EXTERN char *longVersion INIT(= NULL);
#endif
/*