]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
VG_(fclose) ought to close the file, you silly. Fixes BZ #357887.
authorFlorian Krohm <florian@eich-krohm.de>
Tue, 12 Jan 2016 14:32:05 +0000 (14:32 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Tue, 12 Jan 2016 14:32:05 +0000 (14:32 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15755

NEWS
coregrind/m_libcprint.c

diff --git a/NEWS b/NEWS
index 2d984533c2b50cf1cbae56af9b8f5941c6812362..4b5a0a3e53e06782a5486da06ce4097c71de42b9 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -57,6 +57,7 @@ where XXXXXX is the bug number as listed below.
 355455  stderr.exp of test cases wrapmalloc and wrapmallocstatic overconstrained
 355454  do not intercept malloc related symbols from the runtime linker
 356044  Dwarf line info reader misinterprets is_stmt register
+357887  Fix a file handle leak. VG_(fclose) did not close the file
 
 n-i-bz Fix incorrect (or infinite loop) unwind on RHEL7 x86 32 bits
 n-i-bz massif --pages-as-heap=yes does not report peak caused by mmap+munmap
index 1283de59d64db58976b50bdd3c502945dc79082c..ce2c0382576b1cd4b0a94e6a3ab3f819fd3a489b 100644 (file)
@@ -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);
 }