Merge branch 'obsd-master' into master

This commit is contained in:
Thomas Adam 2021-08-23 20:01:09 +01:00
commit 7fe3588e49

View File

@ -497,11 +497,13 @@ args_make_commands_now(struct cmd *self, struct cmdq_item *item, u_int idx)
state = args_make_commands_prepare(self, item, idx, NULL, 0, 0); state = args_make_commands_prepare(self, item, idx, NULL, 0, 0);
cmdlist = args_make_commands(state, 0, NULL, &error); cmdlist = args_make_commands(state, 0, NULL, &error);
args_make_commands_free(state);
if (cmdlist == NULL) { if (cmdlist == NULL) {
cmdq_error(item, "%s", error); cmdq_error(item, "%s", error);
free(error); free(error);
} }
else
cmdlist->references++;
args_make_commands_free(state);
return (cmdlist); return (cmdlist);
} }