mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-11-04 00:49:02 -06:00 
			
		
		
		
	kernel: svc: ConnectToNamedPort: Close extra reference to port.
This commit is contained in:
		@@ -298,6 +298,7 @@ static ResultCode ConnectToNamedPort(Core::System& system, Handle* out, VAddr po
 | 
			
		||||
    // Create a session.
 | 
			
		||||
    KClientSession* session{};
 | 
			
		||||
    R_TRY(port->CreateSession(std::addressof(session)));
 | 
			
		||||
    port->Close();
 | 
			
		||||
 | 
			
		||||
    // Register the session in the table, close the extra reference.
 | 
			
		||||
    handle_table.Register(*out, session);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user