From d30da1653b2797307b8254741949acc007615a04 Mon Sep 17 00:00:00 2001 From: Tobias Stoeckmann Date: Sun, 11 May 2008 12:13:42 +0000 Subject: Memory leak in rcs_delta_stats plugged. ok joris --- usr.bin/cvs/rcs.c | 4 +++- 1 file changed, 3 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 c441dd964b0..eaba3379d52 100644 --- a/usr.bin/cvs/rcs.c +++ b/usr.bin/cvs/rcs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcs.c,v 1.262 2008/03/13 17:01:25 joris Exp $ */ +/* $OpenBSD: rcs.c,v 1.263 2008/05/11 12:13:41 tobias Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. @@ -1144,6 +1144,8 @@ rcs_delta_stats(struct rcs_delta *rdp, int *ladded, int *lremoved) fatal("unknown RCS patch operation '%c'", op); } + cvs_freelines(plines); + *ladded = added; *lremoved = removed; } -- cgit v1.2.3