mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 7.4.2128
Problem: Memory leak when saving for undo fails. Solution: Free allocated memory. (Hirohito Higashi)
This commit is contained in:
@@ -4091,7 +4091,10 @@ do_ecmd(
|
||||
u_sync(FALSE);
|
||||
if (u_savecommon(0, curbuf->b_ml.ml_line_count + 1, 0, TRUE)
|
||||
== FAIL)
|
||||
{
|
||||
vim_free(new_name);
|
||||
goto theend;
|
||||
}
|
||||
u_unchanged(curbuf);
|
||||
buf_freeall(curbuf, BFA_KEEP_UNDO);
|
||||
|
||||
|
Reference in New Issue
Block a user