diff options
Diffstat (limited to 'usr.bin/cvs/commit.c')
-rw-r--r-- | usr.bin/cvs/commit.c | 6 |
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); } |