mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	Fix memory leak in context_free
In commit f727cd9a `int error` member in `struct pa_context` was changed
to `pa_context_error *error`. The memory that is allocated with
`pa_xnew0` in src/pulse/context.c:142 is never freed, and it causes
a leak of 4 bytes. The leak can be easily detected with leak-sanitizer.
			
			
This commit is contained in:
		
							parent
							
								
									470c210cdc
								
							
						
					
					
						commit
						5fdde3fa83
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -274,6 +274,7 @@ static void context_free(pa_context *c) {
 | 
				
			||||||
        pa_proplist_free(c->proplist);
 | 
					        pa_proplist_free(c->proplist);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    pa_xfree(c->server);
 | 
					    pa_xfree(c->server);
 | 
				
			||||||
 | 
					    pa_xfree(c->error);
 | 
				
			||||||
    pa_xfree(c);
 | 
					    pa_xfree(c);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue