summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2008-03-09 03:06:57 +0000
committerJoris Vink <joris@cvs.openbsd.org>2008-03-09 03:06:57 +0000
commita57a4c04aca279828055a89d7d8f1207957a706c (patch)
treee3ba953cbbb6bbb8d37f08566729a05739391365
parente73f6ce6311fab0383aeae9909ebb8e01f61fbcf (diff)
do not empty the list in cvs_file_walklist() this is the caller
his responsibility, allows us to reuse the same file list for multiple callbacks.
-rw-r--r--usr.bin/cvs/file.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.bin/cvs/file.c b/usr.bin/cvs/file.c
index 53b75a455f9..e7dfc0467ea 100644
--- a/usr.bin/cvs/file.c
+++ b/usr.bin/cvs/file.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: file.c,v 1.232 2008/03/09 02:30:42 tobias Exp $ */
+/* $OpenBSD: file.c,v 1.233 2008/03/09 03:06:56 joris Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
@@ -351,10 +351,6 @@ cvs_file_walklist(struct cvs_flisthead *fl, struct cvs_recursion *cr)
next:
nxt = TAILQ_NEXT(l, flist);
- TAILQ_REMOVE(fl, l, flist);
-
- xfree(l->file_path);
- xfree(l);
}
}