mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	Plug some memory leaks and an invalid read
Note in protocol-dbus.c specifically, method_signatures needs to be freed before method_handlers, because otherwise h->method_name is freed while it is still in use as a key in the method_signatures hashmap.
This commit is contained in:
		
							parent
							
								
									a8f20e8d95
								
							
						
					
					
						commit
						b430407f47
					
				
					 5 changed files with 6 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -569,6 +569,8 @@ int pa__init(pa_module *m) {
 | 
			
		|||
    u->dbus_protocol = pa_dbus_protocol_get(m->core);
 | 
			
		||||
    u->core_iface = pa_dbusiface_core_new(m->core);
 | 
			
		||||
 | 
			
		||||
    pa_modargs_free(ma);
 | 
			
		||||
 | 
			
		||||
    return 0;
 | 
			
		||||
 | 
			
		||||
fail:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue