[openssh-commits] [openssh] 03/03: upstream: Plug a couple of minor mem leaks. From beldmit at
git+noreply at mindrot.org
git+noreply at mindrot.org
Sat Nov 6 21:56:54 AEDT 2021
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch master
in repository openssh.
commit eb1f63195a9a38b519536a5b398d9939261ec081
Author: dtucker at openbsd.org <dtucker at openbsd.org>
Date: Sat Nov 6 10:13:39 2021 +0000
upstream: Plug a couple of minor mem leaks. From beldmit at
gmail.com via github PR#283, ok markus@
OpenBSD-Commit-ID: ec1fa7d305d46226861c3ca6fb9c9beb2ada2892
---
sftp-client.c | 3 ++-
sftp-server.c | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/sftp-client.c b/sftp-client.c
index f80113ed..6c33a836 100644
--- a/sftp-client.c
+++ b/sftp-client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sftp-client.c,v 1.156 2021/10/24 21:24:17 deraadt Exp $ */
+/* $OpenBSD: sftp-client.c,v 1.157 2021/11/06 10:13:39 dtucker Exp $ */
/*
* Copyright (c) 2001-2004 Damien Miller <djm at openbsd.org>
*
@@ -2195,6 +2195,7 @@ handle_dest_replies(struct sftp_conn *to, const char *to_path, int synchronous,
(*nreqsp)--;
}
debug3_f("done: %u outstanding replies", *nreqsp);
+ sshbuf_free(msg);
}
int
diff --git a/sftp-server.c b/sftp-server.c
index 18d19491..1b0c42d4 100644
--- a/sftp-server.c
+++ b/sftp-server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sftp-server.c,v 1.129 2021/08/09 23:47:44 djm Exp $ */
+/* $OpenBSD: sftp-server.c,v 1.130 2021/11/06 10:13:39 dtucker Exp $ */
/*
* Copyright (c) 2000-2004 Markus Friedl. All rights reserved.
*
@@ -1553,6 +1553,7 @@ process_extended_expand(u_int32_t id)
npath = xstrdup(path + 2);
free(path);
xasprintf(&path, "%s/%s", cwd, npath);
+ free(npath);
} else {
/* ~user expansions */
if (tilde_expand(path, pw->pw_uid, &npath) != 0) {
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list