From 3fae22de6760a857ade5af2f402f0a53e5575715 Mon Sep 17 00:00:00 2001 From: Niall O'Higgins Date: Thu, 25 Jan 2007 18:35:31 +0000 Subject: plug a memleak in keyword expansion. ok joris@ --- usr.bin/cvs/rcs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.bin/cvs/rcs.c') 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 * 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; } } } -- cgit v1.2.3