summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/rcs.c
diff options
context:
space:
mode:
authorNiall O'Higgins <niallo@cvs.openbsd.org>2007-01-25 18:35:31 +0000
committerNiall O'Higgins <niallo@cvs.openbsd.org>2007-01-25 18:35:31 +0000
commit3fae22de6760a857ade5af2f402f0a53e5575715 (patch)
treee981e2e32bf0a99812cfe1a73c9faa80f9a772f2 /usr.bin/cvs/rcs.c
parent2e8224764e748dfe9686232eba0c1236daa442f9 (diff)
plug a memleak in keyword expansion.
ok joris@
Diffstat (limited to 'usr.bin/cvs/rcs.c')
-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 ed1b118e67a..bd0a67a9519 100644
--- a/usr.bin/cvs/rcs.c
+++ b/usr.bin/cvs/rcs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcs.c,v 1.201 2007/01/16 02:52:56 joris Exp $ */
+/* $OpenBSD: rcs.c,v 1.202 2007/01/25 18:35:30 niallo Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -3106,6 +3106,7 @@ rcs_kwexp_line(char *rcsfile, struct rcs_delta *rdp, struct cvs_line *line,
/* tmpbuf is now ready, convert to string */
line->l_len = len;
line->l_line = cvs_buf_release(tmpbuf);
+ line->l_needsfree = 1;
}
}
}