diff options
author | dtucker@openbsd.org <dtucker@openbsd.org> | 2021-11-06 11:13:39 +0100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2021-11-06 11:56:09 +0100 |
commit | eb1f63195a9a38b519536a5b398d9939261ec081 (patch) | |
tree | 2b7b0bc0b4d1ed1565b8d113c9cf38d09e0adadf /sftp-server.c | |
parent | upstream: move cert_filter_principals() to earlier in the file for (diff) | |
download | openssh-eb1f63195a9a38b519536a5b398d9939261ec081.tar.xz openssh-eb1f63195a9a38b519536a5b398d9939261ec081.zip |
upstream: Plug a couple of minor mem leaks. From beldmit at
gmail.com via github PR#283, ok markus@
OpenBSD-Commit-ID: ec1fa7d305d46226861c3ca6fb9c9beb2ada2892
Diffstat (limited to 'sftp-server.c')
-rw-r--r-- | sftp-server.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sftp-server.c b/sftp-server.c index 18d194911..1b0c42d4c 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) { |