From: Andrew Tridgell Date: Sun, 7 Apr 2002 14:03:15 +0000 (+0200) Subject: don't leave the i_tmpfile lying around X-Git-Tag: v1.6~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e26c7f621269452232d57a31382d29daab2bff05;p=thirdparty%2Fccache.git don't leave the i_tmpfile lying around --- diff --git a/ccache.c b/ccache.c index 94559aba6..6a37ccc62 100644 --- a/ccache.c +++ b/ccache.c @@ -135,6 +135,9 @@ static void to_cache(ARGS *args) copy_fd(fd, 2); close(fd); unlink(tmp_stderr); + if (i_tmpfile) { + unlink(i_tmpfile); + } exit(status); }