Karsten Hopp 4a29ee
To: vim-dev@vim.org
Karsten Hopp 4a29ee
Subject: patch 7.1.114
Karsten Hopp 4a29ee
Fcc: outbox
Karsten Hopp 4a29ee
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 4a29ee
Mime-Version: 1.0
Karsten Hopp 4a29ee
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 4a29ee
Content-Transfer-Encoding: 8bit
Karsten Hopp 4a29ee
------------
Karsten Hopp 4a29ee
Karsten Hopp 4a29ee
Patch 7.1.114
Karsten Hopp 4a29ee
Problem:    Memory leak in getmatches().
Karsten Hopp 4a29ee
Solution:   Don't increment the refcount twice.
Karsten Hopp 4a29ee
Files:	    src/eval.c
Karsten Hopp 4a29ee
Karsten Hopp 4a29ee
Karsten Hopp 4a29ee
*** ../vim-7.1.113/src/eval.c	Mon Sep 17 21:37:09 2007
Karsten Hopp 4a29ee
--- src/eval.c	Sun Sep 16 19:24:49 2007
Karsten Hopp 4a29ee
***************
Karsten Hopp 4a29ee
*** 10351,10357 ****
Karsten Hopp 4a29ee
  	    dict = dict_alloc();
Karsten Hopp 4a29ee
  	    if (dict == NULL)
Karsten Hopp 4a29ee
  		return;
Karsten Hopp 4a29ee
- 	    ++dict->dv_refcount;
Karsten Hopp 4a29ee
  	    dict_add_nr_str(dict, "group", 0L, syn_id2name(cur->hlg_id));
Karsten Hopp 4a29ee
  	    dict_add_nr_str(dict, "pattern", 0L, cur->pattern);
Karsten Hopp 4a29ee
  	    dict_add_nr_str(dict, "priority", (long)cur->priority, NULL);
Karsten Hopp 4a29ee
--- 10355,10360 ----
Karsten Hopp 4a29ee
*** ../vim-7.1.113/src/version.c	Mon Sep 17 21:37:09 2007
Karsten Hopp 4a29ee
--- src/version.c	Mon Sep 17 21:54:08 2007
Karsten Hopp 4a29ee
***************
Karsten Hopp 4a29ee
*** 668,669 ****
Karsten Hopp 4a29ee
--- 668,671 ----
Karsten Hopp 4a29ee
  {   /* Add new patch number below this line */
Karsten Hopp 4a29ee
+ /**/
Karsten Hopp 4a29ee
+     114,
Karsten Hopp 4a29ee
  /**/
Karsten Hopp 4a29ee
Karsten Hopp 4a29ee
-- 
Karsten Hopp 4a29ee
Be nice to your kids...  they'll be the ones choosing your nursing home.
Karsten Hopp 4a29ee
Karsten Hopp 4a29ee
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 4a29ee
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 4a29ee
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 4a29ee
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///