Revert one of previous, for some reason it is being freed.
authornicm <nicm@openbsd.org>
Mon, 23 Aug 2021 11:08:26 +0000 (11:08 +0000)
committernicm <nicm@openbsd.org>
Mon, 23 Aug 2021 11:08:26 +0000 (11:08 +0000)
usr.bin/tmux/cmd-parse.y

index 10519d2..5d98dec 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-parse.y,v 1.43 2021/08/23 11:04:21 nicm Exp $ */
+/* $OpenBSD: cmd-parse.y,v 1.44 2021/08/23 11:08:26 nicm Exp $ */
 
 /*
  * Copyright (c) 2019 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -817,6 +817,7 @@ cmd_parse_build_command(struct cmd_parse_command *cmd,
                                goto out;
                        values[count].type = ARGS_COMMANDS;
                        values[count].cmdlist = pr->cmdlist;
+                       values[count].cmdlist->references++;
                        break;
                }
                count++;