]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: fix minor memory leak in Subsystem option parsing; from
authordjm@openbsd.org <djm@openbsd.org>
Sat, 17 Aug 2024 08:23:04 +0000 (08:23 +0000)
committerDamien Miller <djm@mindrot.org>
Sat, 17 Aug 2024 08:24:00 +0000 (18:24 +1000)
Antonio Larrosa via GHPR515

OpenBSD-Commit-ID: fff3bbefd1b2c45c98cbe45c6b857b15d8a2d364

servconf.c

index 5a20d6f80058d61a3ee88525b5912636e5f8079e..61d29f5d1391bd7b95abb3d4e9b5dfea9008bf59 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: servconf.c,v 1.412 2024/07/25 23:44:01 djm Exp $ */
+/* $OpenBSD: servconf.c,v 1.413 2024/08/17 08:23:04 djm Exp $ */
 /*
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
  *                    All rights reserved
@@ -1933,6 +1933,7 @@ process_server_config_line_depth(ServerOptions *options, char *line,
                xasprintf(&options->subsystem_args[options->num_subsystems],
                    "%s%s%s", arg, *arg2 == '\0' ? "" : " ", arg2);
                free(arg2);
+               free(arg);
                argv_consume(&ac);
                options->num_subsystems++;
                break;