mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	Add a rule for another type of memory leak to find-mem-leak.cocci.
This commit is contained in:
		
							parent
							
								
									f81088bb80
								
							
						
					
					
						commit
						263438b071
					
				@ -7,3 +7,14 @@ statement S;
 | 
			
		||||
  ...
 | 
			
		||||
* if (x == NULL || y == NULL)
 | 
			
		||||
    S
 | 
			
		||||
 | 
			
		||||
@@
 | 
			
		||||
expression x, y;
 | 
			
		||||
statement S;
 | 
			
		||||
@@
 | 
			
		||||
  if (
 | 
			
		||||
*   (x = polarssl_malloc(...)) == NULL
 | 
			
		||||
    ||
 | 
			
		||||
*   (y = polarssl_malloc(...)) == NULL
 | 
			
		||||
  )
 | 
			
		||||
    S
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user