Skip to content
Snippets Groups Projects
Commit 5db4e03a authored by Aomx's avatar Aomx
Browse files

added one forgetten state_free in loop

parent 12ca181e
No related branches found
No related tags found
No related merge requests found
......@@ -541,8 +541,10 @@ void run_script(struct config *config, struct script *script)
wire_client_send_client_starting(state->wire_client);
while (1) {
if (get_next_event(state, &error))
if (get_next_event(state, &error)) {
state_free(state);
die("%s", error);
}
event = state->event;
if (event == NULL)
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment