From 6891490920be2e6e77557e4c0c62052725895820 Mon Sep 17 00:00:00 2001 From: djm Date: Fri, 31 Mar 2023 04:23:02 +0000 Subject: [PATCH] don't leak arg2 on parse_pubkey_algos error path; ok dtucker@ --- usr.bin/ssh/readconf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.bin/ssh/readconf.c b/usr.bin/ssh/readconf.c index 9138dbb7dee..7c1b1b1f434 100644 --- a/usr.bin/ssh/readconf.c +++ b/usr.bin/ssh/readconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: readconf.c,v 1.375 2023/03/10 02:24:56 dtucker Exp $ */ +/* $OpenBSD: readconf.c,v 1.376 2023/03/31 04:23:02 djm Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -1564,6 +1564,7 @@ parse_pubkey_algos: error("%s line %d: keyword %s \"%s\" " "argument must appear alone.", filename, linenum, keyword, arg); + free(arg2); goto out; } } else { -- 2.20.1