From: Jaroslav Kysela Date: Fri, 29 Sep 2006 08:34:22 +0000 (+0200) Subject: timer_hw: fix file descriptor leak X-Git-Tag: v1.0.13~2 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=10c396516ab4a938c27268a4486884e1e5c439ac;p=alsa-lib.git timer_hw: fix file descriptor leak See: bug#2465 --- 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; }