From d356b61cb27dfc320fe252d22079d90b87ca58fc Mon Sep 17 00:00:00 2001 From: Xavier Santolaria Date: Mon, 20 Mar 2006 17:14:48 +0000 Subject: add missing xfree()'s after we are done with cvs_strsplit(); spotted by ray@, OK joris@. --- usr.bin/rcs/rlog.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'usr.bin/rcs/rlog.c') diff --git a/usr.bin/rcs/rlog.c b/usr.bin/rcs/rlog.c index b93c1e8e555..4fa802c92bc 100644 --- a/usr.bin/rcs/rlog.c +++ b/usr.bin/rcs/rlog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rlog.c,v 1.30 2006/03/17 08:51:45 xsa Exp $ */ +/* $OpenBSD: rlog.c,v 1.31 2006/03/20 17:14:47 xsa Exp $ */ /* * Copyright (c) 2005 Joris Vink * Copyright (c) 2005, 2006 Xavier Santolaria @@ -243,6 +243,7 @@ rlog_rev_print(struct rcs_delta *rdp) } found = 0; } + xfree(largv); } } /* -sstates */ @@ -255,6 +256,7 @@ rlog_rev_print(struct rcs_delta *rdp) } found = 0; } + xfree(sargv); } /* -w[logins] */ if (wflag == 1) { @@ -267,6 +269,7 @@ rlog_rev_print(struct rcs_delta *rdp) } found = 0; } + xfree(wargv); } else { if ((author = getlogin()) == NULL) fatal("getlogin failed"); -- cgit v1.2.3