diff options
author | 2006-04-17 12:11:07 +0000 | |
---|---|---|
committer | 2006-04-17 12:11:07 +0000 | |
commit | 5abb215032ab69909a26b54212d5834321bef8d0 (patch) | |
tree | 1637df66d82807235285ba8cc646246c31f93269 /usr.bin/rcs/rcsprog.c | |
parent | Relieve checkin_update and checkin_init of the responsibility of (diff) | |
download | wireguard-openbsd-5abb215032ab69909a26b54212d5834321bef8d0.tar.xz wireguard-openbsd-5abb215032ab69909a26b54212d5834321bef8d0.zip |
plug memory leak; OK ray@.
Diffstat (limited to 'usr.bin/rcs/rcsprog.c')
-rw-r--r-- | usr.bin/rcs/rcsprog.c | 5 |
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); } |