summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/proto.c
diff options
context:
space:
mode:
authorMoritz Jodeit <moritz@cvs.openbsd.org>2005-07-25 20:26:58 +0000
committerMoritz Jodeit <moritz@cvs.openbsd.org>2005-07-25 20:26:58 +0000
commitf287125fd230f8534a97fb421f53fa8d7483af37 (patch)
tree4a39c0ecf4a8e503ec4d51a69a936e33181cc5b8 /usr.bin/cvs/proto.c
parented1a283066ebaa25aa0fa8bab0cdea51e67e10fd (diff)
fix memleak. ok xsa@
Diffstat (limited to 'usr.bin/cvs/proto.c')
-rw-r--r--usr.bin/cvs/proto.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/cvs/proto.c b/usr.bin/cvs/proto.c
index 50993a4a960..4bf5025fced 100644
--- a/usr.bin/cvs/proto.c
+++ b/usr.bin/cvs/proto.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: proto.c,v 1.68 2005/07/25 12:13:08 xsa Exp $ */
+/* $OpenBSD: proto.c,v 1.69 2005/07/25 20:26:57 moritz Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -1092,6 +1092,7 @@ cvs_initlog(void)
strlcpy(buf, env, sizeof(buf));
strlcpy(rpath, envdup, sizeof(rpath));
+ free(envdup);
s = buf;
while ((s = strchr(s, '%')) != NULL) {