summaryrefslogtreecommitdiff
path: root/usr.bin/rcs/rcsprog.c
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2006-04-17 12:11:08 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2006-04-17 12:11:08 +0000
commitd9dd8fdfbcb5d6d007ea75c71abcf49764bc9c90 (patch)
tree56e8cd24d8e518f8aef65843d24cd760ef9ace54 /usr.bin/rcs/rcsprog.c
parent92fe60d3b357050bf6f284775eca285674b0322d (diff)
plug memory leak; OK ray@.
Diffstat (limited to 'usr.bin/rcs/rcsprog.c')
-rw-r--r--usr.bin/rcs/rcsprog.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/rcs/rcsprog.c b/usr.bin/rcs/rcsprog.c
index 8f896ca6119..6ef2a32fe82 100644
--- a/usr.bin/rcs/rcsprog.c
+++ b/usr.bin/rcs/rcsprog.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcsprog.c,v 1.104 2006/04/15 19:35:19 xsa Exp $ */
+/* $OpenBSD: rcsprog.c,v 1.105 2006/04/17 12:11:07 xsa Exp $ */
/*
* Copyright (c) 2005 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -799,6 +799,9 @@ rcs_main(int argc, char **argv)
if (nflag != NULL)
xfree(nflag);
+ if (orange != NULL)
+ xfree(orange);
+
return (0);
}