summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/rcs.c
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@cvs.openbsd.org>2008-05-11 12:13:42 +0000
committerTobias Stoeckmann <tobias@cvs.openbsd.org>2008-05-11 12:13:42 +0000
commitd30da1653b2797307b8254741949acc007615a04 (patch)
treebae5875afeb25040f4816b3438832817d46239ab /usr.bin/cvs/rcs.c
parentd6a2b18c6a6a3961c2c66bbecdb6042730172da3 (diff)
Memory leak in rcs_delta_stats plugged.
ok joris
Diffstat (limited to 'usr.bin/cvs/rcs.c')
-rw-r--r--usr.bin/cvs/rcs.c4
1 files changed, 3 insertions, 1 deletions
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 <jfb@openbsd.org>
* 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;
}