artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f498d2
)
fix a memory leak in an error path
author
jsg
<jsg@openbsd.org>
Sat, 23 May 2015 14:28:37 +0000
(14:28 +0000)
committer
jsg
<jsg@openbsd.org>
Sat, 23 May 2015 14:28:37 +0000
(14:28 +0000)
ok markus@ dtucker@
usr.bin/ssh/sftp-client.c
patch
|
blob
|
history
diff --git
a/usr.bin/ssh/sftp-client.c
b/usr.bin/ssh/sftp-client.c
index
8f03236
..
680136a
100644
(file)
--- a/
usr.bin/ssh/sftp-client.c
+++ b/
usr.bin/ssh/sftp-client.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: sftp-client.c,v 1.11
8 2015/04/24 01:36:00 deraadt
Exp $ */
+/* $OpenBSD: sftp-client.c,v 1.11
9 2015/05/23 14:28:37 jsg
Exp $ */
/*
* Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
*
@@
-401,6
+401,7
@@
do_init(int fd_in, int fd_out, u_int transfer_buflen, u_int num_requests,
error("Invalid packet back from SSH2_FXP_INIT (type %u)",
type);
sshbuf_free(msg);
+ free(ret);
return(NULL);
}
if ((r = sshbuf_get_u32(msg, &ret->version)) != 0)