summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoris <joris@openbsd.org>2005-10-11 00:25:18 +0000
committerjoris <joris@openbsd.org>2005-10-11 00:25:18 +0000
commite3d0b03d2c84b3cff7dd0215dcd9799012ded1ca (patch)
tree73b405beb3ca0c51b0a7c410544411fc20c8511c
parentmore debug stuff i forgot to take out, i blame the dominican sun! (diff)
downloadwireguard-openbsd-e3d0b03d2c84b3cff7dd0215dcd9799012ded1ca.tar.xz
wireguard-openbsd-e3d0b03d2c84b3cff7dd0215dcd9799012ded1ca.zip
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;
}