forked from aniani/vim
updated for version 7.3.905
Problem: Crash when writing viminfo. (Ron Aaron) Solution: Prevent freed history info to be used.
This commit is contained in:
@@ -6264,6 +6264,7 @@ write_viminfo_history(fp)
|
||||
vim_free(viminfo_history[type][i]);
|
||||
vim_free(viminfo_history[type]);
|
||||
viminfo_history[type] = NULL;
|
||||
viminfo_hisidx[type] = 0;
|
||||
}
|
||||
}
|
||||
#endif /* FEAT_VIMINFO */
|
||||
|
Reference in New Issue
Block a user