diff options
author | Jaroslav Kysela <perex@perex.cz> | 2006-09-29 10:34:22 +0200 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2006-09-29 10:34:22 +0200 |
commit | 10c396516ab4a938c27268a4486884e1e5c439ac (patch) | |
tree | 146fb52b9d40a0e5f178fad7b63f5ead21a1bb5f /src/timer | |
parent | 35b1df509ff23375766fe606a6e5589ec4f4787e (diff) | |
download | alsa-lib-10c396516ab4a938c27268a4486884e1e5c439ac.tar.gz |
timer_hw: fix file descriptor leak
See: bug#2465
Diffstat (limited to 'src/timer')
-rw-r--r-- | src/timer/timer_hw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timer/timer_hw.c b/src/timer/timer_hw.c index d11c1e3b..30bea1f1 100644 --- a/src/timer/timer_hw.c +++ b/src/timer/timer_hw.c @@ -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; } |