Patch 8.1.2095
Problem:    Leaking memory when getting item from dict.
Solution:   Also free the key when not evaluating.
Files:      src/dict.c


*** ../vim-8.1.2094/src/dict.c  2019-08-30 22:07:55.950547106 +0200
--- src/dict.c  2019-09-27 21:19:00.882694429 +0200
***************
*** 822,828 ****
                goto failret;
            }
            item = dictitem_alloc(key);
-           clear_tv(&tvkey);
            if (item != NULL)
            {
                item->di_tv = tv;
--- 822,827 ----
***************
*** 831,836 ****
--- 830,836 ----
                    dictitem_free(item);
            }
        }
+       clear_tv(&tvkey);
  
        if (**arg == '}')
            break;
*** ../vim-8.1.2094/src/version.c       2019-09-28 16:29:44.175649771 +0200
--- src/version.c       2019-09-28 17:24:50.906556908 +0200
***************
*** 759,760 ****
--- 759,762 ----
  {   /* Add new patch number below this line */
+ /**/
+     2095,
  /**/

-- 
There are 2 kinds of people in my world: those who know Unix, Perl, Vim, GNU,
Linux, etc, and those who know COBOL.  It gets very difficult for me at
parties, not knowing which group to socialise with :-)
                                                Sitaram Chamarty

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/201909281526.x8SFQ8UQ008331%40masaka.moolenaar.net.

Raspunde prin e-mail lui