diff options
author | 2005-07-25 20:26:57 +0000 | |
---|---|---|
committer | 2005-07-25 20:26:57 +0000 | |
commit | 35d6109a185f5bf84685685aaab03acf4979ead3 (patch) | |
tree | a6a33abb34e81855b36195aa108c8e3c3638352b | |
parent | "file file" -> "this file" in an info msg; (diff) | |
download | wireguard-openbsd-35d6109a185f5bf84685685aaab03acf4979ead3.tar.xz wireguard-openbsd-35d6109a185f5bf84685685aaab03acf4979ead3.zip |
fix memleak. ok xsa@
-rw-r--r-- | usr.bin/cvs/proto.c | 3 |
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) { |