summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/entries.c
diff options
context:
space:
mode:
authorFrederic Cambus <fcambus@cvs.openbsd.org>2016-10-13 20:51:26 +0000
committerFrederic Cambus <fcambus@cvs.openbsd.org>2016-10-13 20:51:26 +0000
commit474aa02b97ebdfe4c2a9866edd938beb5ec7eea2 (patch)
tree11bc6ac3222c47502301f78c66102513ddfadc2a /usr.bin/cvs/entries.c
parentdcbd1a2a2ad2f22560a6521f4f4310634a150ecf (diff)
rcsnum_free() -> free() cleanups. From Michael W. Bombardieri.
OK millert@
Diffstat (limited to 'usr.bin/cvs/entries.c')
-rw-r--r--usr.bin/cvs/entries.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/cvs/entries.c b/usr.bin/cvs/entries.c
index c1a18d128ea..36ecef8e680 100644
--- a/usr.bin/cvs/entries.c
+++ b/usr.bin/cvs/entries.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: entries.c,v 1.106 2015/11/05 09:48:21 nicm Exp $ */
+/* $OpenBSD: entries.c,v 1.107 2016/10/13 20:51:25 fcambus Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -385,8 +385,7 @@ cvs_ent_line_str(const char *name, char *rev, char *tstamp, char *opts,
void
cvs_ent_free(struct cvs_ent *ent)
{
- if (ent->ce_rev != NULL)
- rcsnum_free(ent->ce_rev);
+ free(ent->ce_rev);
free(ent->ce_time);
free(ent->ce_buf);
free(ent);
@@ -533,7 +532,7 @@ cvs_write_tagfile(const char *dir, char *tag, char *date)
if ((rev = rcsnum_parse(tag)) != NULL) {
(void)xsnprintf(sticky, sizeof(sticky),
"N%s", tag);
- rcsnum_free(rev);
+ free(rev);
} else {
(void)xsnprintf(sticky, sizeof(sticky),
"T%s", tag);