0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04: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:
Bram Moolenaar
2018-11-24 14:27:44 +01:00
parent f951416a83
commit 4e303c8ba8
3 changed files with 4 additions and 1 deletions

View File

@@ -1378,6 +1378,7 @@ getcmdline_int(
redrawcmd();
goto cmdline_changed;
}
vim_free(p);
}
}
beep_flush();