summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/commit.c
diff options
context:
space:
mode:
authorjoris <joris@openbsd.org>2008-01-31 22:11:38 +0000
committerjoris <joris@openbsd.org>2008-01-31 22:11:38 +0000
commit4649b4167036b25b876b1ac45f2e688ff73af7c2 (patch)
treedf6dc175c5d095bfbea3b3c8bdaec479904112c9 /usr.bin/cvs/commit.c
parentZap trailing whitespaces. (diff)
downloadwireguard-openbsd-4649b4167036b25b876b1ac45f2e688ff73af7c2.tar.xz
wireguard-openbsd-4649b4167036b25b876b1ac45f2e688ff73af7c2.zip
free RCSNUM's when we are done with them;
ok tobias@
Diffstat (limited to 'usr.bin/cvs/commit.c')
-rw-r--r--usr.bin/cvs/commit.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/cvs/commit.c b/usr.bin/cvs/commit.c
index bf3ed54f7d4..5156eb32700 100644
--- a/usr.bin/cvs/commit.c
+++ b/usr.bin/cvs/commit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: commit.c,v 1.124 2008/01/31 10:15:05 tobias Exp $ */
+/* $OpenBSD: commit.c,v 1.125 2008/01/31 22:11:38 joris Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
* Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org>
@@ -218,6 +218,7 @@ cvs_commit_check_files(struct cvs_file *cf)
if (brev != NULL) {
if (RCSNUM_ISBRANCH(brev))
goto next;
+ rcsnum_free(brev);
}
brev = rcs_translate_tag(tag, cf->file_rcs);
@@ -526,6 +527,9 @@ cvs_commit_local(struct cvs_file *cf)
break;
}
+ if (crev != NULL)
+ rcsnum_free(crev);
+
cvs_history_add(histtype, cf, NULL);
}