From d7a083562222f4d79966e84184a450d39ab8dc45 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 6 Mar 2021 11:16:54 +0000 Subject: [PATCH] Fix minor memory leak in EXT_INFO handling. Happened to be spotted by ASan in the course of other work. --- ssh2transport.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ssh2transport.c b/ssh2transport.c index e9b17fa4..64eb8469 100644 --- a/ssh2transport.c +++ b/ssh2transport.c @@ -1474,6 +1474,8 @@ static void ssh2_transport_process_queue(PacketProtocolLayer *ppl) put_datapl(pktout, ptrlen_from_strbuf(extinfo)); pq_push(s->ppl.out_pq, pktout); } + + strbuf_free(extinfo); } }