diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2007-01-11 15:41:43 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2007-01-11 15:41:43 +0000 |
commit | 31766c29b67f36442d78a34e42fe57cb2cc61bdf (patch) | |
tree | 78e3b2526dc08274323c194204b46ac8ba961eaf /usr.bin/cvs | |
parent | c9c109b694bd91f8475a39c9088c6aa992931d63 (diff) |
revert last commit after discussing w/ joris@; makes sense to remove
the tmp files once we'r done w/ them, not at the very end only..
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r-- | usr.bin/cvs/import.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/cvs/import.c b/usr.bin/cvs/import.c index cc30b2a5ece..f877bbdf8dc 100644 --- a/usr.bin/cvs/import.c +++ b/usr.bin/cvs/import.c @@ -1,4 +1,4 @@ -/* $OpenBSD: import.c,v 1.58 2007/01/11 12:37:29 xsa Exp $ */ +/* $OpenBSD: import.c,v 1.59 2007/01/11 15:41:42 xsa Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * @@ -357,6 +357,9 @@ import_get_rcsdiff(struct cvs_file *cf, RCSNUM *rev) if (cvs_diffreg(p2, p1, b3) == D_ERROR) fatal("import_get_rcsdiff: failed to get RCS patch"); + (void)unlink(p1); + (void)unlink(p2); + if (p1 != NULL) xfree(p1); if (p2 != NULL) |