mirror of
https://github.com/neovim/neovim.git
synced 2026-07-11 20:09:44 +00:00
fix(diff): resource leak on :diffput E787 error path #40686
Coverity CID 649080/649081
This commit is contained in:
@@ -3815,6 +3815,7 @@ void ex_diffgetput(exarg_T *eap)
|
||||
change_warning(curbuf, 0);
|
||||
if (diff_buf_idx(curbuf, curtab) != idx_to) {
|
||||
emsg(_("E787: Buffer changed unexpectedly"));
|
||||
aucmd_restbuf(&aco);
|
||||
goto theend;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user