Skip to content

Commit

Permalink
upstream: fix minor memory leak in Subsystem option parsing; from
Browse files Browse the repository at this point in the history
Antonio Larrosa via GHPR515

OpenBSD-Commit-ID: fff3bbefd1b2c45c98cbe45c6b857b15d8a2d364
  • Loading branch information
djmdjm committed Aug 17, 2024
1 parent 1714272 commit 127a50f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion servconf.c
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>, Espoo, Finland
* All rights reserved
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 127a50f

Please sign in to comment.