mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	export dmabuf manager_handle_capture_output: fix leak on error
Found through static analysis
This commit is contained in:
		
							parent
							
								
									e5348ad7d3
								
							
						
					
					
						commit
						1fef1f88b2
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -84,6 +84,7 @@ static void manager_handle_capture_output(struct wl_client *client,
 | 
			
		|||
		&zwlr_export_dmabuf_frame_v1_interface, version, id);
 | 
			
		||||
	if (frame->resource == NULL) {
 | 
			
		||||
		wl_client_post_no_memory(client);
 | 
			
		||||
		free(frame);
 | 
			
		||||
		return;
 | 
			
		||||
	}
 | 
			
		||||
	wl_resource_set_implementation(frame->resource, &frame_impl, frame,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue