diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-11-24 14:27:44 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-11-24 14:27:44 +0100 |
commit | 4e303c8ba8dcd0566a1ad7c82ff18eb016eea335 (patch) | |
tree | 45c976f649d0e81e8da59a1fde57008697d76d7b /src/ex_getln.c | |
parent | f951416a8396a54bbbe21de1a8b16716428549f2 (diff) | |
download | vim-git-4e303c8ba8dcd0566a1ad7c82ff18eb016eea335.tar.gz |
patch 8.1.0543: Coverity warns for leaking memory and using wrong structv8.1.0543
Problem: Coverity warns for leaking memory and using wrong struct.
Solution: Free pointer when allocation fails. Change "boff" to "loff".
(closes #3634)
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r-- | src/ex_getln.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index 31e646dd3..acccd2732 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -1378,6 +1378,7 @@ getcmdline_int( redrawcmd(); goto cmdline_changed; } + vim_free(p); } } beep_flush(); |