From: djm@openbsd.org Date: Mon, 15 Sep 2025 04:49:00 +0000 (+0000) Subject: upstream: memleak of editline history; ok dtucker@ X-Git-Tag: V_10_1_P1~74 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=bc60bd55cbc1f8139c840668733b51475cbefd93;p=thirdparty%2Fopenssh-portable.git upstream: memleak of editline history; ok dtucker@ OpenBSD-Commit-ID: a244c54eb074cf7fbe28f7ac4f03ace270f7a999 --- diff --git a/sftp.c b/sftp.c index c27926b37..ff85ab507 100644 --- a/sftp.c +++ b/sftp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sftp.c,v 1.241 2025/09/02 09:34:48 djm Exp $ */ +/* $OpenBSD: sftp.c,v 1.242 2025/09/15 04:49:00 djm Exp $ */ /* * Copyright (c) 2001-2004 Damien Miller * @@ -2343,6 +2343,8 @@ interactive_loop(struct sftp_conn *conn, char *file1, char *file2) free(conn); #ifdef USE_LIBEDIT + if (hl != NULL) + history_end(hl); if (el != NULL) el_end(el); #endif /* USE_LIBEDIT */