Bug#638745: espeak: FD leak in LoadConfig()
Package: espeak
Version: 1.45.04-1
Severity: important
Tags: upstream
LoadConfig() function in synthdata.cpp never closes the file descriptor for the
config file. This is actually the same as bug #543453, it was then fixed in
upstream version 1.40.03 but it has now appeared again on later versions.
Patch attached.
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 3.0.3 (PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=el_GR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages espeak depends on:
ii libc6 2.13-16 Embedded GNU C Library: Shared lib
ii libespeak1 1.45.04-1 Multi-lingual software speech synt
ii libgcc1 1:4.6.1-7 GCC support library
ii libstdc++6 4.6.1-7 GNU Standard C++ Library v3
espeak recommends no packages.
espeak suggests no packages.
-- no debconf information
--- espeak-1.45.04/src/synthdata.cpp 2011-08-21 16:54:29.000000000 +0300
+++ espeak-1.45.04-fixed//src/synthdata.cpp 2011-08-21 16:03:25.000000000 +0300
@@ -512,6 +512,7 @@
}
}
}
+ fclose(f);
} // end of LoadConfig
Reply to: