summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/rcs.c
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@cvs.openbsd.org>2008-01-28 21:33:21 +0000
committerTobias Stoeckmann <tobias@cvs.openbsd.org>2008-01-28 21:33:21 +0000
commitcd2fd9f57e4f1383574a63e5c86f44415fb6767f (patch)
tree6d191d2eb85eb2f3137791e077525b5a56669b73 /usr.bin/cvs/rcs.c
parent9a77627a7d635bc1e064b0735c3c7190b0eacde4 (diff)
Properly free "rev".
> Diff from Igor Zinovik
Diffstat (limited to 'usr.bin/cvs/rcs.c')
-rw-r--r--usr.bin/cvs/rcs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/cvs/rcs.c b/usr.bin/cvs/rcs.c
index d39bb30b787..ef988ba22ae 100644
--- a/usr.bin/cvs/rcs.c
+++ b/usr.bin/cvs/rcs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcs.c,v 1.239 2008/01/14 17:29:21 tobias Exp $ */
+/* $OpenBSD: rcs.c,v 1.240 2008/01/28 21:33:20 tobias Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -2635,6 +2635,7 @@ rcs_translate_tag(const char *revstr, RCSFILE *rfp)
break;
}
+ rcsnum_free(rev);
frev = rcsnum_alloc();
if (brp == NULL) {
rcsnum_cpy(rdp->rd_num, frev, 0);