mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 01:34:25 +00:00 
			
		
		
		
	vim-patch:8.0.0975: using freed memory when setting 'backspace'
Problem:    Using freed memory when setting 'backspace'.
Solution:   When changing oldval also change origval.
edbc0d46cf
			
			
This commit is contained in:
		@@ -1584,6 +1584,9 @@ do_set (
 | 
			
		||||
                  break;
 | 
			
		||||
                }
 | 
			
		||||
                xfree(oldval);
 | 
			
		||||
                if (origval == oldval) {
 | 
			
		||||
                  origval = *(char_u **)varp;
 | 
			
		||||
                }
 | 
			
		||||
                oldval = *(char_u **)varp;
 | 
			
		||||
              }
 | 
			
		||||
              /*
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user