mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 11:15:07 +03:00 
			
		
		
		
	fix memory leak in session nonce map
This commit is contained in:
		
							parent
							
								
									562a7d1f19
								
							
						
					
					
						commit
						f62bc842ae
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -32,7 +32,7 @@ func (h *nonceHeap) Pop() interface{} {
 | 
				
			||||||
	n, *h = (*h)[l-1], (*h)[:l-1]
 | 
						n, *h = (*h)[l-1], (*h)[:l-1]
 | 
				
			||||||
	return n
 | 
						return n
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
func (h nonceHeap) peek() *crypto.BoxNonce { return &h[len(h)-1] }
 | 
					func (h nonceHeap) peek() *crypto.BoxNonce { return &h[0] }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// All the information we know about an active session.
 | 
					// All the information we know about an active session.
 | 
				
			||||||
// This includes coords, permanent and ephemeral keys, handles and nonces, various sorts of timing information for timeout and maintenance, and some metadata for the admin API.
 | 
					// This includes coords, permanent and ephemeral keys, handles and nonces, various sorts of timing information for timeout and maintenance, and some metadata for the admin API.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue