Xi: fix memory leak in ProcXGetSelectedExtensionEvents
Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com> Reviewed-by: Nicolas Peninguy <nico@lostgeeks.org> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
		
							parent
							
								
									12e46e8373
								
							
						
					
					
						commit
						4d87606a0d
					
				| 
						 | 
				
			
			@ -152,8 +152,8 @@ ProcXGetSelectedExtensionEvents(ClientPtr client)
 | 
			
		|||
    if (total_length) {
 | 
			
		||||
	client->pSwapReplyFunc = (ReplySwapPtr) Swap32Write;
 | 
			
		||||
	WriteSwappedDataToClient(client, total_length, buf);
 | 
			
		||||
	free(buf);
 | 
			
		||||
    }
 | 
			
		||||
    free(buf);
 | 
			
		||||
    return Success;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue