mirror of
https://github.com/vim/vim.git
synced 2025-11-15 23:14:06 -05:00
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)
This commit is contained in:
@@ -1378,6 +1378,7 @@ getcmdline_int(
|
||||
redrawcmd();
|
||||
goto cmdline_changed;
|
||||
}
|
||||
vim_free(p);
|
||||
}
|
||||
}
|
||||
beep_flush();
|
||||
|
||||
Reference in New Issue
Block a user