summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/admin.c
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2007-01-02 00:02:18 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2007-01-02 00:02:18 +0000
commit432f05be5ff6a75cdc523ab78e363f4057b0c269 (patch)
tree7f19bd3255e51d20befa1be533acc0c25a48d95d /usr.bin/cvs/admin.c
parentdccbe45dc3680e125747c023d603ecca0bd94a9c (diff)
missing xfree()'s; spotted by joris.
Diffstat (limited to 'usr.bin/cvs/admin.c')
-rw-r--r--usr.bin/cvs/admin.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/cvs/admin.c b/usr.bin/cvs/admin.c
index ae346847b18..e7fecb10178 100644
--- a/usr.bin/cvs/admin.c
+++ b/usr.bin/cvs/admin.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: admin.c,v 1.42 2007/01/01 23:49:06 xsa Exp $ */
+/* $OpenBSD: admin.c,v 1.43 2007/01/02 00:02:17 xsa Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* Copyright (c) 2005 Joris Vink <joris@openbsd.org>
@@ -289,6 +289,8 @@ cvs_admin_local(struct cvs_file *cf)
if ((logrev = rcsnum_parse(sargv->argv[1])) == NULL) {
cvs_log(LP_ERR, "`%s' bad revision number", statestr);
+ cvs_argv_destroy(sargv);
+ xfree(state);
return;
}
} else {