summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/cvs/import.c5
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)