summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/cmd-parse.y
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2021-08-23 11:08:27 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2021-08-23 11:08:27 +0000
commit0e25a494f71b09dc1b288d6e06bc9cb48ff71c77 (patch)
tree6f91bd578c346c448ef660357de8389cb9bb1d21 /usr.bin/tmux/cmd-parse.y
parent78c2c963c1b9ff88160dc0240092a849751520a7 (diff)
Revert one of previous, for some reason it is being freed.
Diffstat (limited to 'usr.bin/tmux/cmd-parse.y')
-rw-r--r--usr.bin/tmux/cmd-parse.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/cmd-parse.y b/usr.bin/tmux/cmd-parse.y
index 10519d2b5e9..5d98dec6133 100644
--- a/usr.bin/tmux/cmd-parse.y
+++ b/usr.bin/tmux/cmd-parse.y
@@ -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++;