updated for version 7.1-166
diff --git a/src/ops.c b/src/ops.c
index ea5e20b..82107cc 100644
--- a/src/ops.c
+++ b/src/ops.c
@@ -927,8 +927,8 @@
int name;
int copy; /* make a copy, if FALSE make register empty. */
{
- static struct yankreg *reg;
- int i;
+ struct yankreg *reg;
+ int i;
#ifdef FEAT_CLIPBOARD
/* When Visual area changed, may have to update selection. Obtain the
@@ -967,7 +967,7 @@
}
/*
- * Put "reg" into register "name". Free any previous contents.
+ * Put "reg" into register "name". Free any previous contents and "reg".
*/
void
put_register(name, reg)
@@ -977,6 +977,7 @@
get_yank_register(name, 0);
free_yank_all();
*y_current = *(struct yankreg *)reg;
+ vim_free(reg);
# ifdef FEAT_CLIPBOARD
/* Send text written to clipboard register to the clipboard. */
diff --git a/src/version.c b/src/version.c
index 10fffd8..3f1aa85 100644
--- a/src/version.c
+++ b/src/version.c
@@ -667,6 +667,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 166,
+/**/
165,
/**/
164,