]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Close file opened with gzdopen()
authorRamiro Polla <ramiro.polla@gmail.com>
Thu, 15 Jul 2010 17:39:45 +0000 (14:39 -0300)
committerJoel Rosdahl <joel@rosdahl.net>
Fri, 16 Jul 2010 13:50:19 +0000 (15:50 +0200)
util.c

diff --git a/util.c b/util.c
index cb58c0a6dc4a100414e3a5a9e904a9dad8525f0c..0c8b1d8cb613a34c5565c16458c9ab682ed27990 100644 (file)
--- a/util.c
+++ b/util.c
@@ -161,6 +161,8 @@ void copy_fd(int fd_in, int fd_out)
                        fatal("Failed to copy fd");
                }
        }
+
+       gzclose(gz_in);
 }
 
 #ifndef HAVE_MKSTEMP