From 4649b4167036b25b876b1ac45f2e688ff73af7c2 Mon Sep 17 00:00:00 2001 From: joris Date: Thu, 31 Jan 2008 22:11:38 +0000 Subject: free RCSNUM's when we are done with them; ok tobias@ --- usr.bin/cvs/commit.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'usr.bin/cvs/commit.c') 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 * Copyright (c) 2006 Xavier Santolaria @@ -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); } -- cgit v1.2.3-59-g8ed1b