mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	backend/drm/legacy.c: Fix memory leak in drm_legacy_crtc_set_gamma
Found via scan-build
This commit is contained in:
		
							parent
							
								
									6666604f17
								
							
						
					
					
						commit
						a92293a15a
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -204,6 +204,7 @@ bool drm_legacy_crtc_set_gamma(struct wlr_drm_backend *drm,
 | 
			
		|||
	if (drmModeCrtcSetGamma(drm->fd, crtc->id, size, r, g, b) != 0) {
 | 
			
		||||
		wlr_log_errno(WLR_ERROR, "Failed to set gamma LUT on CRTC %"PRIu32,
 | 
			
		||||
			crtc->id);
 | 
			
		||||
		free(linear_lut);
 | 
			
		||||
		return false;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue