From 8d2cae9b0bf1200a92a4dbebea4bd7964cebfe0b Mon Sep 17 00:00:00 2001 From: djm Date: Fri, 29 Apr 2022 03:13:32 +0000 Subject: [PATCH] fix memleak on session-bind path; from Pedro Martelletto, ok dtucker@ --- usr.bin/ssh/ssh-agent.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.bin/ssh/ssh-agent.c b/usr.bin/ssh/ssh-agent.c index 83a162d4978..27f1eda045e 100644 --- a/usr.bin/ssh/ssh-agent.c +++ b/usr.bin/ssh/ssh-agent.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-agent.c,v 1.287 2022/01/14 03:43:48 djm Exp $ */ +/* $OpenBSD: ssh-agent.c,v 1.288 2022/04/29 03:13:32 djm Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -1557,6 +1557,7 @@ process_ext_session_bind(SocketEntry *e) /* success */ r = 0; out: + free(fp); sshkey_free(key); sshbuf_free(sid); sshbuf_free(sig); -- 2.20.1