degesch: fix invalid free()
This commit is contained in:
		
							parent
							
								
									390b283233
								
							
						
					
					
						commit
						eaecdda614
					
				| @ -396,8 +396,9 @@ input_destroy_buffer (struct input *self, struct input_buffer *buffer) | |||||||
| 		HISTORY_STATE *state = history_get_history_state (); | 		HISTORY_STATE *state = history_get_history_state (); | ||||||
| 
 | 
 | ||||||
| 		history_set_history_state (buffer->history); | 		history_set_history_state (buffer->history); | ||||||
| 		free (buffer->history); |  | ||||||
| 		rl_clear_history (); | 		rl_clear_history (); | ||||||
|  | 		free (buffer->history); | ||||||
|  | 		buffer->history = NULL; | ||||||
| 
 | 
 | ||||||
| 		history_set_history_state (state); | 		history_set_history_state (state); | ||||||
| 		free (state); | 		free (state); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user