]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
don't leave the i_tmpfile lying around
authorAndrew Tridgell <tridge@samba.org>
Sun, 7 Apr 2002 14:03:15 +0000 (16:03 +0200)
committerAndrew Tridgell <tridge@samba.org>
Sun, 7 Apr 2002 14:03:15 +0000 (16:03 +0200)
ccache.c

index 94559aba64acb4f8d9648c7a89c11cba25e9c020..6a37ccc62528946edcb517d05aa2a2ee5f3e88ca 100644 (file)
--- 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);
                }