Skip to content

Commit

Permalink
upstream: fix memory leak in error path; bz#3074 patch from
Browse files Browse the repository at this point in the history
[email protected], ok dtucker

OpenBSD-Commit-ID: d031853f3ecf47b35a0669588f4d9d8e3b307b3c
  • Loading branch information
djmdjm committed Oct 4, 2019
1 parent b7fbc75 commit 07f2c7f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sftp-client.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $OpenBSD: sftp-client.c,v 1.134 2019/07/12 03:56:21 djm Exp $ */
/* $OpenBSD: sftp-client.c,v 1.135 2019/10/04 04:31:59 djm Exp $ */
/*
* Copyright (c) 2001-2004 Damien Miller <[email protected]>
*
Expand Down Expand Up @@ -631,8 +631,7 @@ do_lsreaddir(struct sftp_conn *conn, const char *path, int print_flag,
__func__, ssh_err(r));
free(filename);
free(longname);
sshbuf_free(msg);
return -1;
goto out;
}

if (print_flag)
Expand Down

0 comments on commit 07f2c7f

Please sign in to comment.