mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	pcm_hooks: null check for h
Signed-off-by: renu tyagi <renu.tyagi@samsung.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
		
							parent
							
								
									bd0b008c0d
								
							
						
					
					
						commit
						69e0aaa569
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -457,7 +457,8 @@ static int snd_pcm_hook_add_conf(snd_pcm_t *pcm, snd_config_t *root, snd_config_
 | 
			
		|||
		err = hook_add_dlobj(pcm, h);
 | 
			
		||||
 | 
			
		||||
	if (err < 0) {
 | 
			
		||||
		snd_dlclose(h);
 | 
			
		||||
		if(h)
 | 
			
		||||
			snd_dlclose(h);
 | 
			
		||||
		return err;
 | 
			
		||||
	}
 | 
			
		||||
	return 0;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue