summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/update.c
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2006-05-27 21:20:53 +0000
committerJoris Vink <joris@cvs.openbsd.org>2006-05-27 21:20:53 +0000
commit645da074501851fef8844371f37c865b76613971 (patch)
tree2660b93798a1e0b11ba976c6496686f4e51ae03a /usr.bin/cvs/update.c
parent616097a064970a90e3c4b6d34f17bd091e82d1b4 (diff)
do not close the same entries list twice, this caused a double free;
Diffstat (limited to 'usr.bin/cvs/update.c')
-rw-r--r--usr.bin/cvs/update.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/cvs/update.c b/usr.bin/cvs/update.c
index 9e76edaee0e..df1722e9d06 100644
--- a/usr.bin/cvs/update.c
+++ b/usr.bin/cvs/update.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: update.c,v 1.63 2006/05/27 16:10:01 joris Exp $ */
+/* $OpenBSD: update.c,v 1.64 2006/05/27 21:20:52 joris Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -184,8 +184,6 @@ cvs_update_leavedir(struct cvs_file *cf)
if (ent->ce_status == CVS_ENT_REMOVED) {
isempty = 0;
cvs_ent_free(ent);
- cvs_ent_close(entlist,
- ENT_NOSYNC);
break;
}