summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/file.c
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2005-04-18 21:24:58 +0000
committerJoris Vink <joris@cvs.openbsd.org>2005-04-18 21:24:58 +0000
commitd73c4958cfbdc1d88f938d4ce5588f770e387290 (patch)
tree34c0865ca430c2be19cb1a25d51bbbffdb0c9a42 /usr.bin/cvs/file.c
parent4b47cc49e37361c0e6319fb53a330d4a775a3c8e (diff)
free cf_tag for regular files in cvs_file_free();
ok jfb@
Diffstat (limited to 'usr.bin/cvs/file.c')
-rw-r--r--usr.bin/cvs/file.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/cvs/file.c b/usr.bin/cvs/file.c
index 4eac374bb86..f021976ebd0 100644
--- a/usr.bin/cvs/file.c
+++ b/usr.bin/cvs/file.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: file.c,v 1.63 2005/04/18 21:10:39 joris Exp $ */
+/* $OpenBSD: file.c,v 1.64 2005/04/18 21:24:57 joris Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -728,7 +728,11 @@ cvs_file_free(CVSFILE *cf)
SIMPLEQ_REMOVE_HEAD(&(cf->cf_files), cf_list);
cvs_file_free(child);
}
+ } else {
+ if (cf->cf_tag != NULL)
+ cvs_strfree(cf->cf_tag);
}
+
free(cf);
}