summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/file.c
diff options
context:
space:
mode:
authorRay Lai <ray@cvs.openbsd.org>2007-02-21 04:18:46 +0000
committerRay Lai <ray@cvs.openbsd.org>2007-02-21 04:18:46 +0000
commitab45f2fa73b2433f84cc32b44eb36b69c1da81e8 (patch)
tree7f131c90689cd00021cdaf65522b3058ada55b76 /usr.bin/cvs/file.c
parent52d8fcb212a34f22bb934155501ca2e7ebbc6b45 (diff)
Simplify cvs_buf_differ(). Also cvs_buf_differ(), a comparison
function, should not do any resource freeing. OK joris@.
Diffstat (limited to 'usr.bin/cvs/file.c')
-rw-r--r--usr.bin/cvs/file.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/cvs/file.c b/usr.bin/cvs/file.c
index e04974736c6..34144a5ddbc 100644
--- a/usr.bin/cvs/file.c
+++ b/usr.bin/cvs/file.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: file.c,v 1.187 2007/02/19 11:40:00 otto Exp $ */
+/* $OpenBSD: file.c,v 1.188 2007/02/21 04:18:45 ray Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
@@ -669,11 +669,12 @@ cvs_file_classify(struct cvs_file *cf, const char *tag)
if (b2 == NULL)
fatal("failed to get file content for comparison");
- /* b1 and b2 get released in cvs_buf_differ */
if (cvs_buf_differ(b1, b2))
ismodified = 1;
else
ismodified = 0;
+ cvs_buf_free(b1);
+ cvs_buf_free(b2);
}
if (cf->file_rcs != NULL && cf->file_rcsrev != NULL) {