summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@cvs.openbsd.org>2010-10-28 12:30:28 +0000
committerTobias Stoeckmann <tobias@cvs.openbsd.org>2010-10-28 12:30:28 +0000
commit64025b10bd20b4fc20f0fcd3804b83af9aaa34a6 (patch)
treebdcaebad50459a3e49b1e53b57a2338a9c4200fb /usr.bin
parent074e7caec6164af2cfdd8f45997fc67814a3f8c3 (diff)
Fix memory leak.
ok stsp, zinovik
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/cvs/tag.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/cvs/tag.c b/usr.bin/cvs/tag.c
index e78120deff0..41c6b643820 100644
--- a/usr.bin/cvs/tag.c
+++ b/usr.bin/cvs/tag.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tag.c,v 1.79 2009/03/24 18:33:25 joris Exp $ */
+/* $OpenBSD: tag.c,v 1.80 2010/10/28 12:30:27 tobias Exp $ */
/*
* Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org>
*
@@ -284,6 +284,7 @@ cvs_tag_check_files(struct cvs_file *cf)
goto bad;
rcsnum_tostr(rev, rbuf, sizeof(rbuf));
fi->crevstr = xstrdup(rbuf);
+ rcsnum_free(rev);
} else if (runflags & T_DELETE)
goto bad;