mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	pulsecore: Fixed possible memory leak
BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=95291 Signed-off-by: Deepak Srivastava <srivastava.d@samsung.com> Signed-off-by: Arun Raghavan <git@arunraghavan.net>
This commit is contained in:
		
							parent
							
								
									23c15c3b52
								
							
						
					
					
						commit
						ccc83b6cd7
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -2535,8 +2535,10 @@ char *pa_getcwd(void) {
 | 
				
			||||||
        if (getcwd(p, l))
 | 
					        if (getcwd(p, l))
 | 
				
			||||||
            return p;
 | 
					            return p;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (errno != ERANGE)
 | 
					        if (errno != ERANGE) {
 | 
				
			||||||
 | 
					            pa_xfree(p);
 | 
				
			||||||
            return NULL;
 | 
					            return NULL;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        pa_xfree(p);
 | 
					        pa_xfree(p);
 | 
				
			||||||
        l *= 2;
 | 
					        l *= 2;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue