artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
859ca05
)
Fix mem leak in environment setup. From jjelen at redhat.com via
author
dtucker
<dtucker@openbsd.org>
Tue, 7 Mar 2023 06:09:14 +0000
(06:09 +0000)
committer
dtucker
<dtucker@openbsd.org>
Tue, 7 Mar 2023 06:09:14 +0000
(06:09 +0000)
bz#2687, ok djm@
usr.bin/ssh/session.c
patch
|
blob
|
history
diff --git
a/usr.bin/ssh/session.c
b/usr.bin/ssh/session.c
index
41e1ce3
..
d597c60
100644
(file)
--- a/
usr.bin/ssh/session.c
+++ b/
usr.bin/ssh/session.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: session.c,v 1.33
4 2023/03/05 05:34:09
dtucker Exp $ */
+/* $OpenBSD: session.c,v 1.33
5 2023/03/07 06:09:14
dtucker Exp $ */
/*
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
* All rights reserved
@@
-919,6
+919,7
@@
do_setup_env(struct ssh *ssh, Session *s, const char *shell)
}
*value++ = '\0';
child_set_env(&env, &envsize, cp, value);
+ free(cp);
}
/* SSH_CLIENT deprecated */