mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	alsa: free the strdup'd substring on error
n is the return value of pa_split() Found by scan-build
This commit is contained in:
		
							parent
							
								
									bc64b32798
								
							
						
					
					
						commit
						e83f039833
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -2553,6 +2553,7 @@ static int element_parse_override_map(pa_config_parser_state *state) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (i >= (unsigned)channel_count) {
 | 
					        if (i >= (unsigned)channel_count) {
 | 
				
			||||||
            pa_log("[%s:%u] Invalid override map size (>%d) in '%s'", state->filename, state->lineno, channel_count, state->section);
 | 
					            pa_log("[%s:%u] Invalid override map size (>%d) in '%s'", state->filename, state->lineno, channel_count, state->section);
 | 
				
			||||||
 | 
					            pa_xfree(n);
 | 
				
			||||||
            return -1;
 | 
					            return -1;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        channel_position = alsa_channel_positions[i];
 | 
					        channel_position = alsa_channel_positions[i];
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue