summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/import.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/import.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/import.c')
-rw-r--r--usr.bin/cvs/import.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/cvs/import.c b/usr.bin/cvs/import.c
index fbe1e3d3d03..de47d7ec882 100644
--- a/usr.bin/cvs/import.c
+++ b/usr.bin/cvs/import.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: import.c,v 1.70 2007/02/17 18:23:43 xsa Exp $ */
+/* $OpenBSD: import.c,v 1.71 2007/02/21 04:18:45 ray Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -303,6 +303,8 @@ import_update(struct cvs_file *cf)
cf->file_path);
ret = cvs_buf_differ(b1, b2);
+ cvs_buf_free(b1);
+ cvs_buf_free(b2);
if (ret == 0) {
import_tag(cf, brev, rev);
rcsnum_free(brev);