diff --git a/valgrind-3.11.0-fclose.patch b/valgrind-3.11.0-fclose.patch new file mode 100644 index 0000000..d79fa93 --- /dev/null +++ b/valgrind-3.11.0-fclose.patch @@ -0,0 +1,21 @@ +commit 8c8306308e05e92de228de57e832c85fb976124b +Author: florian +Date: Tue Jan 12 14:32:05 2016 +0000 + + VG_(fclose) ought to close the file, you silly. Fixes BZ #357887. + + + git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15755 a5019735-40e9-0310-863c-91ae7b9d1cf9 + +diff --git a/coregrind/m_libcprint.c b/coregrind/m_libcprint.c +index 1283de5..ce2c038 100644 +--- a/coregrind/m_libcprint.c ++++ b/coregrind/m_libcprint.c +@@ -359,6 +359,7 @@ void VG_(fclose)( VgFile *fp ) + if (fp->num_chars) + VG_(write)(fp->fd, fp->buf, fp->num_chars); + ++ VG_(close)(fp->fd); + VG_(free)(fp); + } + diff --git a/valgrind.spec b/valgrind.spec index 63fe9c1..e7caeee 100644 --- a/valgrind.spec +++ b/valgrind.spec @@ -82,6 +82,9 @@ Patch11: valgrind-3.11.0-pthread_barrier.patch # KDE#357833 - Valgrind is broken on recent linux kernel (RLIMIT_DATA) Patch12: valgrind-3.11.0-rlimit_data.patch +# KDE##357887 VG_(fclose) ought to close the file, you silly. +Patch13: valgrind-3.11.0-fclose.patch + %if %{build_multilib} # Ensure glibc{,-devel} is installed for both multilib arches BuildRequires: /lib/libc.so.6 /usr/lib/libc.so /lib64/libc.so.6 /usr/lib64/libc.so @@ -198,6 +201,7 @@ Valgrind User Manual for details. %patch10 -p1 %patch11 -p1 %patch12 -p1 +%patch13 -p1 %build # We need to use the software collection compiler and binutils if available. @@ -375,6 +379,7 @@ echo ===============END TESTING=============== %changelog * Wed Jan 20 2016 Mark Wielaard - Add valgrind-3.11.0-rlimit_data.patch +- Add valgrind-3.11.0-fclose.patch * Tue Jan 19 2016 Mark Wielaard - 3.11.0-7 - Add valgrind-3.11.0-pthread_barrier.patch