diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2005-10-11 00:25:19 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2005-10-11 00:25:19 +0000 |
commit | 3ffdee627f58dd33c027093cdc75bc56a1d55efe (patch) | |
tree | 503a1aef336605960e12e490f1179c5fb92fe85d | |
parent | 2f4405522c3d3234db40617a6592bf223d46c027 (diff) |
free logrev on error;
-rw-r--r-- | usr.bin/rcs/rcsprog.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/rcs/rcsprog.c b/usr.bin/rcs/rcsprog.c index 077f9ceedc3..ddd970a8919 100644 --- a/usr.bin/rcs/rcsprog.c +++ b/usr.bin/rcs/rcsprog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcsprog.c,v 1.24 2005/10/10 23:38:21 joris Exp $ */ +/* $OpenBSD: rcsprog.c,v 1.25 2005/10/11 00:25:18 joris Exp $ */ /* * Copyright (c) 2005 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -250,6 +250,7 @@ rcs_main(int argc, char **argv) "failed to set logmsg for '%s' to '%s'", logstr, logmsg); rcs_close(file); + rcsnum_free(logrev); continue; } |