summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiall O'Higgins <niallo@cvs.openbsd.org>2006-12-21 14:59:26 +0000
committerNiall O'Higgins <niallo@cvs.openbsd.org>2006-12-21 14:59:26 +0000
commita593c17f14c4342059f48a2bb5c16334c560a2c2 (patch)
tree361b3b7909529e88d4c115a3b22e3c1844173099
parent4ae5a9d6290d5c383dc72c79b54a60c7ea19d9d8 (diff)
- plug memory leak in rcs_translate_tag()
ok joris@ ray@
-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 a0e9550db14..a834daf4238 100644
--- a/usr.bin/cvs/rcs.c
+++ b/usr.bin/cvs/rcs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcs.c,v 1.190 2006/12/21 14:58:14 niallo Exp $ */
+/* $OpenBSD: rcs.c,v 1.191 2006/12/21 14:59:25 niallo Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -2991,6 +2991,7 @@ rcs_translate_tag(const char *revstr, RCSFILE *rfp)
fatal("tag %s does not exist (1)", revstr);
if (RCSNUM_ISBRANCH(rev)) {
+ rcsnum_free(brev);
TAILQ_FOREACH(brp, &(rdp->rd_branches), rb_list) {
for (i = 0; i < rev->rn_len; i++) {
if (brp->rb_num->rn_id[i] != rev->rn_id[i])