mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	ucm: find_exec() - fix memory leak (dir)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
		
							parent
							
								
									7764e3e621
								
							
						
					
					
						commit
						7fcb1aadd5
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -73,6 +73,7 @@ static int find_exec(const char *name, char *out, size_t len)
 | 
			
		|||
				    || !(st.st_mode & S_IEXEC))
 | 
			
		||||
					continue;
 | 
			
		||||
				snd_strlcpy(out, bin, len);
 | 
			
		||||
				closedir(dir);
 | 
			
		||||
				return 1;
 | 
			
		||||
			}
 | 
			
		||||
			closedir(dir);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue