summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2005-10-11 00:25:19 +0000
committerJoris Vink <joris@cvs.openbsd.org>2005-10-11 00:25:19 +0000
commit3ffdee627f58dd33c027093cdc75bc56a1d55efe (patch)
tree503a1aef336605960e12e490f1179c5fb92fe85d
parent2f4405522c3d3234db40617a6592bf223d46c027 (diff)
free logrev on error;
-rw-r--r--usr.bin/rcs/rcsprog.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/rcs/rcsprog.c b/usr.bin/rcs/rcsprog.c
index 077f9ceedc3..ddd970a8919 100644
--- a/usr.bin/rcs/rcsprog.c
+++ b/usr.bin/rcs/rcsprog.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcsprog.c,v 1.24 2005/10/10 23:38:21 joris Exp $ */
+/* $OpenBSD: rcsprog.c,v 1.25 2005/10/11 00:25:18 joris Exp $ */
/*
* Copyright (c) 2005 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -250,6 +250,7 @@ rcs_main(int argc, char **argv)
"failed to set logmsg for '%s' to '%s'",
logstr, logmsg);
rcs_close(file);
+ rcsnum_free(logrev);
continue;
}