mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
timer_hw: fix file descriptor leak
See: bug#2465
This commit is contained in:
parent
35b1df509f
commit
10c396516a
1 changed files with 1 additions and 1 deletions
|
|
@ -264,8 +264,8 @@ int snd_timer_hw_open(snd_timer_t **handle, const char *name, int dev_class, int
|
|||
}
|
||||
if (ioctl(fd, SNDRV_TIMER_IOCTL_TREAD, &arg) < 0) {
|
||||
ret = -errno;
|
||||
close(fd);
|
||||
__no_tread:
|
||||
close(fd);
|
||||
SNDMSG("extended read is not supported (SNDRV_TIMER_IOCTL_TREAD)");
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue