mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Merge branch 'obsd-master'
This commit is contained in:
		
							
								
								
									
										5
									
								
								proc.c
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								proc.c
									
									
									
									
									
								
							@@ -93,8 +93,9 @@ proc_event_cb(__unused int fd, short events, void *arg)
 | 
			
		||||
			log_debug("peer %p message %d", peer, imsg.hdr.type);
 | 
			
		||||
 | 
			
		||||
			if (peer_check_version(peer, &imsg) != 0) {
 | 
			
		||||
				if (imsg.fd != -1)
 | 
			
		||||
					close(imsg.fd);
 | 
			
		||||
				int fd = imsg_get_fd(&imsg);
 | 
			
		||||
				if (fd != -1)
 | 
			
		||||
					close(fd);
 | 
			
		||||
				imsg_free(&imsg);
 | 
			
		||||
				break;
 | 
			
		||||
			}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user