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:
@@ -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
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user