diff options
-rw-r--r-- | usr.bin/cvs/rcs.c | 3 |
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); |