updated for version 7.1-147
diff --git a/src/ex_getln.c b/src/ex_getln.c
index 7ce48a8..68966de 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -3353,6 +3353,7 @@
char_u *ss = NULL;
static int findex;
static char_u *orig_save = NULL; /* kept value of orig */
+ int orig_saved = FALSE;
int i;
long_u len;
int non_suf_match; /* number without matching suffix */
@@ -3421,6 +3422,7 @@
{
vim_free(orig_save);
orig_save = orig;
+ orig_saved = TRUE;
/*
* Do the expansion.
@@ -3546,7 +3548,7 @@
ExpandCleanup(xp);
/* Free "orig" if it wasn't stored in "orig_save". */
- if (orig != orig_save)
+ if (!orig_saved)
vim_free(orig);
return ss;