mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	zeroconf-discover: fix a memory leak
Coverity CID: #1358700 https://bugs.freedesktop.org/show_bug.cgi?id=97876
This commit is contained in:
		
							parent
							
								
									feecced5cd
								
							
						
					
					
						commit
						768e57c8a0
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -173,9 +173,10 @@ static void resolver_cb(
 | 
			
		|||
                ss.channels = (uint8_t) atoi(value);
 | 
			
		||||
            else if (pa_streq(key, "format"))
 | 
			
		||||
                ss.format = pa_parse_sample_format(value);
 | 
			
		||||
            else if (pa_streq(key, "icon-name"))
 | 
			
		||||
            else if (pa_streq(key, "icon-name")) {
 | 
			
		||||
                pa_xfree(properties);
 | 
			
		||||
                properties = pa_sprintf_malloc("device.icon_name=%s", value);
 | 
			
		||||
            else if (pa_streq(key, "channel_map")) {
 | 
			
		||||
            } else if (pa_streq(key, "channel_map")) {
 | 
			
		||||
                pa_channel_map_parse(&cm, value);
 | 
			
		||||
                channel_map_set = true;
 | 
			
		||||
            }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue