summaryrefslogtreecommitdiff
path: root/src/timer
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2006-09-29 10:34:22 +0200
committerJaroslav Kysela <perex@perex.cz>2006-09-29 10:34:22 +0200
commit10c396516ab4a938c27268a4486884e1e5c439ac (patch)
tree146fb52b9d40a0e5f178fad7b63f5ead21a1bb5f /src/timer
parent35b1df509ff23375766fe606a6e5589ec4f4787e (diff)
downloadalsa-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.c2
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;
}