comparison src/move.c @ 15064:7b2dcca9e0c1 v8.1.0543

patch 8.1.0543: Coverity warns for leaking memory and using wrong struct commit https://github.com/vim/vim/commit/4e303c8ba8dcd0566a1ad7c82ff18eb016eea335 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Nov 24 14:27:44 2018 +0100 patch 8.1.0543: Coverity warns for leaking memory and using wrong struct Problem: Coverity warns for leaking memory and using wrong struct. Solution: Free pointer when allocation fails. Change "boff" to "loff". (closes #3634)
author Bram Moolenaar <Bram@vim.org>
date Sat, 24 Nov 2018 14:30:08 +0100
parents a8ed1cb85859
children ac5542aadd9c
comparison
equal deleted inserted replaced
15063:8f098d4eca24 15064:7b2dcca9e0c1
1959 { 1959 {
1960 /* Count screen lines that are below the window. */ 1960 /* Count screen lines that are below the window. */
1961 scrolled += loff.height; 1961 scrolled += loff.height;
1962 if (loff.lnum == curwin->w_botline 1962 if (loff.lnum == curwin->w_botline
1963 #ifdef FEAT_DIFF 1963 #ifdef FEAT_DIFF
1964 && boff.fill == 0 1964 && loff.fill == 0
1965 #endif 1965 #endif
1966 ) 1966 )
1967 scrolled -= curwin->w_empty_rows; 1967 scrolled -= curwin->w_empty_rows;
1968 } 1968 }
1969 1969