mirror of
				https://git.haproxy.org/git/haproxy.git/
				synced 2025-10-31 08:30:59 +01:00 
			
		
		
		
	This coccinelle patch finds locations where the return value of `realloc()` is assigned to the pointer passed to `realloc()`. This calls will leak memory if `realloc()` returns `NULL`.
		
			
				
	
	
		
			7 lines
		
	
	
		
			56 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
		
			56 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| @@
 | |
| expression E;
 | |
| expression F;
 | |
| @@
 | |
| 
 | |
| * E = realloc(E, F);
 |