mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 21:42:43 +00:00 
			
		
		
		
	UserspaceEmulator: Don't complain about free(nullptr)
This commit is contained in:
		
							parent
							
								
									33e3e8d63d
								
							
						
					
					
						commit
						c7cf87c9f8
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -49,6 +49,9 @@ void MallocTracer::target_did_malloc(Badge<SoftCPU>, FlatPtr address, size_t siz | |||
| 
 | ||||
| void MallocTracer::target_did_free(Badge<SoftCPU>, FlatPtr address) | ||||
| { | ||||
|     if (!address) | ||||
|         return; | ||||
| 
 | ||||
|     for (auto& mallocation : m_mallocations) { | ||||
|         if (mallocation.address == address) { | ||||
|             if (mallocation.freed) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling