summaryrefslogtreecommitdiff
path: root/usr.bin/rcs
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2006-03-20 17:14:48 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2006-03-20 17:14:48 +0000
commitd356b61cb27dfc320fe252d22079d90b87ca58fc (patch)
tree0189cf0787597490c0c1bfae858cfc67d715305d /usr.bin/rcs
parentd90b6dec045269ec6863127f0fd4cc8d64811766 (diff)
add missing xfree()'s after we are done with cvs_strsplit();
spotted by ray@, OK joris@.
Diffstat (limited to 'usr.bin/rcs')
-rw-r--r--usr.bin/rcs/rlog.c5
1 files changed, 4 insertions, 1 deletions
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 <joris@openbsd.org>
* Copyright (c) 2005, 2006 Xavier Santolaria <xsa@openbsd.org>
@@ -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");