version 1.60, 2023/06/30 21:55:08 |
version 1.61, 2023/11/14 15:59:49 |
|
|
struct args_value *value; |
struct args_value *value; |
struct args_command_state *state; |
struct args_command_state *state; |
const char *cmd; |
const char *cmd; |
|
const char *file; |
|
|
state = xcalloc(1, sizeof *state); |
state = xcalloc(1, sizeof *state); |
|
|
|
|
|
|
if (wait) |
if (wait) |
state->pi.item = item; |
state->pi.item = item; |
cmd_get_source(self, &state->pi.file, &state->pi.line); |
cmd_get_source(self, &file, &state->pi.line); |
|
state->pi.file = xstrdup(file); |
state->pi.c = tc; |
state->pi.c = tc; |
if (state->pi.c != NULL) |
if (state->pi.c != NULL) |
state->pi.c->references++; |
state->pi.c->references++; |
|
|
cmd_list_free(state->cmdlist); |
cmd_list_free(state->cmdlist); |
if (state->pi.c != NULL) |
if (state->pi.c != NULL) |
server_client_unref(state->pi.c); |
server_client_unref(state->pi.c); |
|
free((void *)state->pi.file); |
free(state->cmd); |
free(state->cmd); |
free(state); |
free(state); |
} |
} |