summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2005-09-18 00:33:41 +0000
committerJoris Vink <joris@cvs.openbsd.org>2005-09-18 00:33:41 +0000
commitd05d5b781482b04dc296a109ca4d88eaa5946217 (patch)
treefc2c1a90f8fb65aba9598d1fcbede936dc591bea /usr.bin
parent1405bb2d796e7e50be5b6fafc0127b1426d6e6bb (diff)
fix memleak
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/cvs/rcs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/cvs/rcs.c b/usr.bin/cvs/rcs.c
index d26ead01aaf..0c76845df17 100644
--- a/usr.bin/cvs/rcs.c
+++ b/usr.bin/cvs/rcs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcs.c,v 1.61 2005/09/17 23:47:17 joris Exp $ */
+/* $OpenBSD: rcs.c,v 1.62 2005/09/18 00:33:40 joris Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -1250,6 +1250,7 @@ rcs_getrev(RCSFILE *rfp, RCSNUM *rev)
}
bp = cvs_buf_release(rbuf);
rbuf = rcs_patch((char *)bp, (char *)rdp->rd_text);
+ free(bp);
if (rbuf == NULL)
break;
} while (rcsnum_cmp(crev, rev, 0) != 0);