mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	Added missed snd_ctl_close in snd_pcm_open_subdevice...
This commit is contained in:
		
							parent
							
								
									682deca370
								
							
						
					
					
						commit
						4b8fda3997
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -108,6 +108,7 @@ int snd_pcm_open_subdevice(snd_pcm_t **handle, int card, int device, int subdevi
 | 
				
			||||||
			goto __again;
 | 
								goto __again;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
						snd_ctl_close(ctl);
 | 
				
			||||||
	pcm = (snd_pcm_t *) calloc(1, sizeof(snd_pcm_t));
 | 
						pcm = (snd_pcm_t *) calloc(1, sizeof(snd_pcm_t));
 | 
				
			||||||
	if (pcm == NULL) {
 | 
						if (pcm == NULL) {
 | 
				
			||||||
		close(fd);
 | 
							close(fd);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue