Mercurial > vim
comparison src/dict.c @ 21038:6ad5f0c99ee9 v8.2.1070
patch 8.2.1070: Vim9: leaking memory when lacking white space in dict
Commit: https://github.com/vim/vim/commit/ab19d495fd880b25a38d58cbeb5b21e4d0ee5835
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jun 27 17:04:05 2020 +0200
patch 8.2.1070: Vim9: leaking memory when lacking white space in dict
Problem: Vim9: leaking memory when lacking white space in dict.
Solution: Clear the typval.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 27 Jun 2020 17:15:03 +0200 |
parents | 2f8b0812819f |
children | 0ca7e04d39e3 |
comparison
equal
deleted
inserted
replaced
21037:0484ff664beb | 21038:6ad5f0c99ee9 |
---|---|
860 } | 860 } |
861 } | 861 } |
862 if (vim9script && (*arg)[1] != NUL && !VIM_ISWHITE((*arg)[1])) | 862 if (vim9script && (*arg)[1] != NUL && !VIM_ISWHITE((*arg)[1])) |
863 { | 863 { |
864 semsg(_(e_white_after), ":"); | 864 semsg(_(e_white_after), ":"); |
865 clear_tv(&tvkey); | |
865 goto failret; | 866 goto failret; |
866 } | 867 } |
867 | 868 |
868 *arg = skipwhite(*arg + 1); | 869 *arg = skipwhite(*arg + 1); |
869 eval_next_non_blank(*arg, evalarg, &getnext); | 870 eval_next_non_blank(*arg, evalarg, &getnext); |